forked from Minki/linux
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
@ -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…
Reference in New Issue
Block a user