Skip to content

Commit

Permalink
[SCSI] ipr: Auto sense handling fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian King authored and James Bottomley committed Aug 6, 2006
1 parent 5b7304f commit 117d2ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4127,8 +4127,7 @@ static int ipr_get_autosense(struct ipr_cmnd *ipr_cmd)
{
struct ipr_ioasa *ioasa = &ipr_cmd->ioasa;

if ((be32_to_cpu(ioasa->ioasc_specific) &
(IPR_ADDITIONAL_STATUS_FMT | IPR_AUTOSENSE_VALID)) == 0)
if ((be32_to_cpu(ioasa->ioasc_specific) & IPR_AUTOSENSE_VALID) == 0)
return 0;

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

0 comments on commit 117d2ce

Please sign in to comment.