From ad8a04697f5f25216553965450813601b0abfa22 Mon Sep 17 00:00:00 2001 From: "MATSUDA, Daiki" Date: Mon, 9 Apr 2012 12:40:52 +0900 Subject: [PATCH] UML: fix iteration over consoles I found typo in UML driver. MATSUDA Daiki (cherry picked from commit 257191c9e4aa7a361a805baf37f4bb9d50440b43) --- AUTHORS | 1 + src/uml/uml_driver.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)