summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
authorBrian King <brking@us.ibm.com>2006-08-02 14:57:58 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-08-06 15:50:50 -0500
commit117d2ce1cea25fc94302ff418ccef644cd3e59af (patch)
tree110fc53fd3c4e8741ba7deb072e5d17388c2d096 /drivers/scsi/ipr.c
parent5b7304fbfb74bfca6f7d5a88b28197e3f7f2743b (diff)
downloadop-kernel-dev-117d2ce1cea25fc94302ff418ccef644cd3e59af.zip
op-kernel-dev-117d2ce1cea25fc94302ff418ccef644cd3e59af.tar.gz
[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>
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 55c0156..7ed4eef 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -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,
OpenPOWER on IntegriCloud