mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[SCSI] scsi_dh_rdac: Fix for returning correct mode select cmd return info
The function mode_select_handle_sense returns SCSI_DH_OK even when there is a sense code which is incorrect. Removing it so that it returns SCSI_DH_IO when there is sense that is not handled by this function. Signed-off-by: Babu Moger <[email protected]> Reviewed-by: Vijay Chauhan <[email protected]> Reviewed-by: Bob Stankey <[email protected]> Reviewed-by: Chandra Seetharaman <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
348764024f
commit
c0630f76d0
1 changed files with 0 additions and 2 deletions
|
|
@ -500,8 +500,6 @@ static int mode_select_handle_sense(struct scsi_device *sdev,
|
|||
if (!ret)
|
||||
goto done;
|
||||
|
||||
err = SCSI_DH_OK;
|
||||
|
||||
switch (sense_hdr.sense_key) {
|
||||
case NO_SENSE:
|
||||
case ABORTED_COMMAND:
|
||||
|
|
|
|||
Loading…
Reference in a new issue