diff options
author | Juergen Gross <jgross@suse.com> | 2017-02-01 07:52:02 +0100 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2017-02-02 10:23:53 -0800 |
commit | e9dcbc86d614018923e26e31319b0a54c9e5abac (patch) | |
tree | 544976b0f20bfbce14433e3e09214fcc72889cb7 /pc-bios/pxe-eepro100.rom | |
parent | 6d06220ad91985f59454c619dc238ebd8a968cd8 (diff) |
xen: use qdev_unplug() instead of g_free() in xen_pv_find_xendev()
The error exits of xen_pv_find_xendev() free the new xen-device via
g_free() which is wrong.
As the xen-device has been initialized as qdev it must be removed
via qdev_unplug().
This bug has been introduced with commit 3a6c9172ac5951e6dac2b3f6
("xen: create qdev for each backend device").
Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'pc-bios/pxe-eepro100.rom')
0 files changed, 0 insertions, 0 deletions