From: MATSUDA, Daiki Date: Mon, 9 Apr 2012 03:40:52 +0000 (+0900) Subject: UML: fix iteration over consoles X-Git-Tag: v0.9.12-rc1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=257191c9e4aa7a361a805baf37f4bb9d50440b43;p=thirdparty%2Flibvirt.git UML: fix iteration over consoles I found typo in UML driver. MATSUDA Daiki --- diff --git a/AUTHORS b/AUTHORS index 66938cbe54..b2283830e1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -230,6 +230,7 @@ Patches have also been contributed by: Christian Benvenuti Ilja Livenson Stefan Bader + MATSUDA Daiki [....send patches to get your name here....] diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c index f2d0368384..4e640ff67a 100644 --- a/src/uml/uml_driver.c +++ b/src/uml/uml_driver.c @@ -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)