]> git.proxmox.com Git - mirror_qemu.git/commit
xen-hvm: Clean up xen_hvm_init() error handling
authorMarkus Armbruster <armbru@redhat.com>
Thu, 14 Jan 2016 15:09:38 +0000 (16:09 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 14 Jan 2016 16:49:36 +0000 (16:49 +0000)
commitdced4d2fcb3961358b12ec3a191dd04505f333af
tree85a02abd9ffb53d62da35dce15621f632fa1b3f9
parentac0487e1d2ae811cd4d035741a109a4ecfb013f1
xen-hvm: Clean up xen_hvm_init() error handling

xen_hvm_init() returns -1 without cleaning up on some errors (harmless
long as the caller exit()s on error), dies with hw_error() on others.
hw_error() isn't approprate here.  Clean up to exit() on all errors.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/xen/xen.h
xen-hvm-stub.c
xen-hvm.c