scsi: qla2xxx: Correct setting of SAM_STAT_CHECK_CONDITION

Bart reports that in qla_isr.c's qla2x00_handle_dif_error we're wrongly
shifting the SAM_STAT_CHECK_CONDITION by one instead of directly ORing it
onto the SCSI command's result.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Bart Van Assche <Bart.VanAssche@wdc.com>
Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by Johannes Thumshirn and committed by Martin K. Petersen 584d7aad f7d5182c

+3 -3
+3 -3
drivers/scsi/qla2xxx/qla_isr.c
··· 2174 0x10, 0x1); 2175 set_driver_byte(cmd, DRIVER_SENSE); 2176 set_host_byte(cmd, DID_ABORT); 2177 - cmd->result |= SAM_STAT_CHECK_CONDITION << 1; 2178 return 1; 2179 } 2180 ··· 2184 0x10, 0x3); 2185 set_driver_byte(cmd, DRIVER_SENSE); 2186 set_host_byte(cmd, DID_ABORT); 2187 - cmd->result |= SAM_STAT_CHECK_CONDITION << 1; 2188 return 1; 2189 } 2190 ··· 2194 0x10, 0x2); 2195 set_driver_byte(cmd, DRIVER_SENSE); 2196 set_host_byte(cmd, DID_ABORT); 2197 - cmd->result |= SAM_STAT_CHECK_CONDITION << 1; 2198 return 1; 2199 } 2200
··· 2174 0x10, 0x1); 2175 set_driver_byte(cmd, DRIVER_SENSE); 2176 set_host_byte(cmd, DID_ABORT); 2177 + cmd->result |= SAM_STAT_CHECK_CONDITION; 2178 return 1; 2179 } 2180 ··· 2184 0x10, 0x3); 2185 set_driver_byte(cmd, DRIVER_SENSE); 2186 set_host_byte(cmd, DID_ABORT); 2187 + cmd->result |= SAM_STAT_CHECK_CONDITION; 2188 return 1; 2189 } 2190 ··· 2194 0x10, 0x2); 2195 set_driver_byte(cmd, DRIVER_SENSE); 2196 set_host_byte(cmd, DID_ABORT); 2197 + cmd->result |= SAM_STAT_CHECK_CONDITION; 2198 return 1; 2199 } 2200