Skip to content

Commit 117d2ce

Browse files
Brian KingJames Bottomley
authored andcommitted
[SCSI] ipr: Auto sense handling fix
Fix up a logic error in the checking for valid sense data. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 5b7304f commit 117d2ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/scsi/ipr.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,8 +4127,7 @@ static int ipr_get_autosense(struct ipr_cmnd *ipr_cmd)
41274127
{
41284128
struct ipr_ioasa *ioasa = &ipr_cmd->ioasa;
41294129

4130-
if ((be32_to_cpu(ioasa->ioasc_specific) &
4131-
(IPR_ADDITIONAL_STATUS_FMT | IPR_AUTOSENSE_VALID)) == 0)
4130+
if ((be32_to_cpu(ioasa->ioasc_specific) & IPR_AUTOSENSE_VALID) == 0)
41324131
return 0;
41334132

41344133
memcpy(ipr_cmd->scsi_cmd->sense_buffer, ioasa->auto_sense.data,

0 commit comments

Comments
 (0)