Skip to content

Commit

Permalink
Staging: hv: storvsc: Fixup the error when processing SET_WINDOW command
Browse files Browse the repository at this point in the history
Fixup the error when processing SET_WINDOW command.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 225ce6e commit 59e00e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ static bool storvsc_check_scsi_cmd(struct scsi_cmnd *scmnd)
switch (scsi_op) {
/* smartd sends this command, which will offline the device */
case SET_WINDOW:
scmnd->result = DID_ERROR << 16;
scmnd->result = ILLEGAL_REQUEST << 16;
allowed = false;
break;
default:
Expand Down

0 comments on commit 59e00e7

Please sign in to comment.