]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Properly report error of unsupported input bus type
authorLuyao Huang <lhuang@redhat.com>
Wed, 4 Feb 2015 02:33:29 +0000 (10:33 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Feb 2015 06:51:23 +0000 (07:51 +0100)
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 <lhuang@redhat.com>
src/conf/domain_conf.c

index 3a0b13e069b711113a20301505f091a687d96fbe..4251b133a907889b6bfbd10c935ab070f1ada92d 100644 (file)
@@ -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) {