usb_storage: make it a bit more correct
Add stall when unknown SCSI command is hit Change-Id: Icbeea905cd262ab296fb34470e54c665b8bab488
This commit is contained in:
parent
21c5ffe09a
commit
074e911859
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue