usb storage: fix status reporting
commitab4797ad2ec34e63ee8751fbd3e5d0a9888eaf4a
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Dec 2010 09:36:35 +0000 (9 10:36 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jan 2011 16:15:24 +0000 (11 17:15 +0100)
tree72647f0d627f80d60cb7cedf9e67d41f3eeeaf92
parentca0c730df977abd7ca24afd17fa640f1af47f0b1
usb storage: fix status reporting

Change usb_msd_send_status() to take a pointer to the status packet
instead of writing the status to s->usb_buf which might not point
to the correct location.

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