usb_storage: make it a bit more correct

Add stall when unknown SCSI command is hit

Change-Id: Icbeea905cd262ab296fb34470e54c665b8bab488
This commit is contained in:
Amaury Pouly 2013-07-24 22:33:00 +02:00 committed by Marcin Bukat
parent 21c5ffe09a
commit 074e911859

View file

@ -1151,6 +1151,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
default:
logf("scsi unknown cmd %x",cbw->command_block[0x0]);
usb_drv_stall(ep_in, true,true);
send_csw(UMS_STATUS_FAIL);
cur_sense_data.sense_key=SENSE_ILLEGAL_REQUEST;
cur_sense_data.asc=ASC_INVALID_COMMAND;