]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Properly report error when an unsupported chr device name is passed
authorLuyao Huang <lhuang@redhat.com>
Wed, 4 Feb 2015 01:53:24 +0000 (09:53 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Feb 2015 06:49:37 +0000 (07:49 +0100)
Add the missing jump to thje error label. The error message shouldn't
ever be triggered though as it's called only on pre-selected nodes.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_conf.c

index 706e5d26c9a80718dde47dc3aae111ce342a7f14..3a0b13e069b711113a20301505f091a687d96fbe 100644 (file)
@@ -8609,6 +8609,7 @@ virDomainChrDefParseXML(xmlXPathContextPtr ctxt,
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("unknown character device type: %s"),
                        nodeName);
+        goto error;
     }
 
     cur = node->children;