Skip to content

Commit 9a231ca

Browse files
Dan Carpentermartinkpetersen
authored andcommitted
scsi: myrs: Fix a logical vs bitwise bug
The || was supposed to be |. The original code just sets ->result to 1. Fixes: 7726618 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f4445bb commit 9a231ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/myrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ static void myrs_handle_scsi(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk,
20862086
status == MYRS_STATUS_DEVICE_NON_RESPONSIVE2)
20872087
scmd->result = (DID_BAD_TARGET << 16);
20882088
else
2089-
scmd->result = (DID_OK << 16) || status;
2089+
scmd->result = (DID_OK << 16) | status;
20902090
scmd->scsi_done(scmd);
20912091
}
20922092

0 commit comments

Comments
 (0)