summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-05-22 00:33:49 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-23 09:11:10 +0200
commit5de7d31df289f0d7711648ea837680d33906c350 (patch)
tree57ee96150fe45cdec0756725587b02a1ea570da3 /drivers/usb/storage/usb.c
parent1e5a5b51a57363b441c4dd27774b186e715ab139 (diff)
downloadbarebox-5de7d31df289f0d7711648ea837680d33906c350.tar.gz
usb: storage: Fix TEST_UNIT_READY command size
TEST_UNIT_READY is 6 bytes long instead of 12. Fix it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 79561ee..63d624e 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -142,7 +142,7 @@ exit:
static int usb_stor_test_unit_ready(struct us_blk_dev *usb_blkdev)
{
- u8 cmd[12];
+ u8 cmd[6];
int ret;
memset(cmd, 0, sizeof(cmd));