UML: fix iteration over consoles

I found typo in UML driver.

MATSUDA Daiki
This commit is contained in:
MATSUDA, Daiki 2012-04-09 12:40:52 +09:00 committed by Eric Blake
parent 1413560966
commit 257191c9e4
2 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ Patches have also been contributed by:
Christian Benvenuti <benve@cisco.com>
Ilja Livenson <ilja.livenson@gmail.com>
Stefan Bader <stefan.bader@canonical.com>
MATSUDA Daiki <matsudadik@intellilink.co.jp>
[....send patches to get your name here....]

View File

@ -249,7 +249,7 @@ umlIdentifyChrPTY(struct uml_driver *driver,
{
int i;
for (i = 0 ; i < dom->def->nserials; i++)
for (i = 0 ; i < dom->def->nconsoles; i++)
if (dom->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY)
if (umlIdentifyOneChrPTY(driver, dom,
dom->def->consoles[i], "con") < 0)