Re: [Qemu-devel] [PATCH 01/19] usb-storage: fix possible memory leak and missing error message

2014-09-18 Thread Paolo Bonzini
Il 18/09/2014 11:32, arei.gong...@huawei.com ha scritto: > From: Gonglei > > 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 > Signed-off-by: Gonglei > --- > hw/usb/dev-storage.c

[Qemu-devel] [PATCH 01/19] usb-storage: fix possible memory leak and missing error message

2014-09-18 Thread arei.gonglei
From: Gonglei 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 Signed-off-by: Gonglei --- hw/usb/dev-storage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/dev-storage.c