From 76b284c968ffd630f97b35464d7836699b5482be Mon Sep 17 00:00:00 2001 From: Luyao Huang Date: Wed, 4 Feb 2015 10:33:29 +0800 Subject: [PATCH] conf: Properly report error of unsupported input bus type https://bugzilla.redhat.com/show_bug.cgi?id=1188914 Add a missing jump to the error label in case the input device bus is invalid. Signed-off-by: Luyao Huang --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 3a0b13e069..4251b133a9 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -8969,6 +8969,7 @@ virDomainInputDefParseXML(const virDomainDef *dom, virReportError(VIR_ERR_INTERNAL_ERROR, _("unsupported input bus %s"), bus); + goto error; } if (def->type != VIR_DOMAIN_INPUT_TYPE_MOUSE && def->type != VIR_DOMAIN_INPUT_TYPE_KBD) { -- 2.39.5