mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +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,
|
||||
_("unsupported input bus %s"),
|
||||
bus);
|
||||
goto error;
|
||||
}
|
||||
if (def->type != VIR_DOMAIN_INPUT_TYPE_MOUSE &&
|
||||
def->type != VIR_DOMAIN_INPUT_TYPE_KBD) {
|
||||
|
Loading…
Reference in New Issue
Block a user