usb-storage: fix NULL pointer dereference.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 2 Sep 2011 11:05:13 +0000 (13:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2011 10:58:51 +0000 (12:58 +0200)
commitc42fd6dd2d69aab1918418d070d45b102e920dde
tree3cd7bb2ccfcb393e604f29ce3f0b393bb6b8b3fc
parent205e0089ec32ff18afc4afa7664f371bb005eefe
usb-storage: fix NULL pointer dereference.

When a usb packet is canceled we need to check whenever we actually have
a scsi request in flight before we try to cancel it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-msd.c