From: Luyao Huang Date: Wed, 4 Feb 2015 02:33:29 +0000 (+0800) Subject: conf: Properly report error of unsupported input bus type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=76b284c968ffd630f97b35464d7836699b5482be;p=libvirt.git 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 --- 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) {