usb: mass storage fix
commitef0bdf77d7070494692cbccd80c4c8f08c85c240
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 4 May 2011 14:49:56 +0000 (4 16:49 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 May 2011 14:55:15 +0000 (4 16:55 +0200)
treed2d05d81e156614e9dcb2466ffbc6ab276cd5e08
parent13a9a0d3e253e272744b523e39642c9b6d564f4d
usb: mass storage fix

Initialize scsi_len with zero when starting a new request, so any
stuff leftover from the previous request is cleared out.  This may
happen in case the data returned by the scsi command doesn't fit
into the buffer provided by the guest.

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