mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
scsi: storvsc: Return DID_ERROR for invalid commands
ILLEGAL_COMMAND is a sense code, not a driver byte. Link: https://lore.kernel.org/r/20210113090500.129644-33-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
88188179f3
commit
ecc751b27a
1 changed files with 1 additions and 1 deletions
|
@ -1671,7 +1671,7 @@ static bool storvsc_scsi_cmd_ok(struct scsi_cmnd *scmnd)
|
|||
* this. So, don't send it.
|
||||
*/
|
||||
case SET_WINDOW:
|
||||
scmnd->result = ILLEGAL_REQUEST << 16;
|
||||
scmnd->result = DID_ERROR << 16;
|
||||
allowed = false;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue