Staging: hv: storvsc: Fixup the error when processing SET_WINDOW command
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 8 Nov 2011 17:01:42 +0000 (09:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 01:02:07 +0000 (17:02 -0800)
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>
drivers/staging/hv/storvsc_drv.c

index a72cc22062b5b9befa7d2dd5a148ef01c32452a2..e16c7a3a402d26a81069a1cecd805a1959aea38c 100644 (file)
@@ -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: