mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 22:15:20 +00:00
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 <lhuang@redhat.com>
This commit is contained in:
parent
de3d32407b
commit
76b284c968
@ -8969,6 +8969,7 @@ virDomainInputDefParseXML(const virDomainDef *dom,
|
|||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unsupported input bus %s"),
|
_("unsupported input bus %s"),
|
||||||
bus);
|
bus);
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
if (def->type != VIR_DOMAIN_INPUT_TYPE_MOUSE &&
|
if (def->type != VIR_DOMAIN_INPUT_TYPE_MOUSE &&
|
||||||
def->type != VIR_DOMAIN_INPUT_TYPE_KBD) {
|
def->type != VIR_DOMAIN_INPUT_TYPE_KBD) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user