conf: Properly report error when an unsupported chr device name is passed

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>
This commit is contained in:
Luyao Huang 2015-02-04 09:53:24 +08:00 committed by Peter Krempa
parent 219ea41d8d
commit de3d32407b
1 changed files with 1 additions and 0 deletions

View File

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