summaryrefslogtreecommitdiffstats
path: root/hw/usb/hcd-ohci.c
diff options
context:
space:
mode:
authorGonglei2014-09-19 08:48:23 +0200
committerGerd Hoffmann2014-09-23 11:41:45 +0200
commitf0bc7fe3b75d2ae4aedb6da6f68ebb87f77d929b (patch)
tree0dd2af0249c63b01ace23715f2a7fc84082b90c4 /hw/usb/hcd-ohci.c
parentusb-storage: Fix how legacy init handles option ID clash (diff)
downloadqemu-f0bc7fe3b75d2ae4aedb6da6f68ebb87f77d929b.tar.gz
qemu-f0bc7fe3b75d2ae4aedb6da6f68ebb87f77d929b.tar.xz
qemu-f0bc7fe3b75d2ae4aedb6da6f68ebb87f77d929b.zip
usb-storage: fix possible memory leak and missing error message
When scsi_bus_legacy_add_drive() return NULL, meanwhile err will be not NULL, which will casue memory leak and missing error message. Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-ohci.c')
0 files changed, 0 insertions, 0 deletions