diff options
Diffstat (limited to 'drivers/usb/gadget/file_storage.c')
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 0360f56221e..e358130a485 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -2553,7 +2553,7 @@ static int do_scsi_command(struct fsg_dev *fsg) | |||
2553 | fsg->data_size_from_cmnd = 0; | 2553 | fsg->data_size_from_cmnd = 0; |
2554 | sprintf(unknown, "Unknown x%02x", fsg->cmnd[0]); | 2554 | sprintf(unknown, "Unknown x%02x", fsg->cmnd[0]); |
2555 | if ((reply = check_command(fsg, fsg->cmnd_size, | 2555 | if ((reply = check_command(fsg, fsg->cmnd_size, |
2556 | DATA_DIR_UNKNOWN, 0xff, 0, unknown)) == 0) { | 2556 | DATA_DIR_UNKNOWN, ~0, 0, unknown)) == 0) { |
2557 | fsg->curlun->sense_data = SS_INVALID_COMMAND; | 2557 | fsg->curlun->sense_data = SS_INVALID_COMMAND; |
2558 | reply = -EINVAL; | 2558 | reply = -EINVAL; |
2559 | } | 2559 | } |