Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Brian King and committed by
James Bottomley
117d2ce1 5b7304fb

+1 -2
+1 -2
drivers/scsi/ipr.c
··· 4127 4127 { 4128 4128 struct ipr_ioasa *ioasa = &ipr_cmd->ioasa; 4129 4129 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) 4132 4131 return 0; 4133 4132 4134 4133 memcpy(ipr_cmd->scsi_cmd->sense_buffer, ioasa->auto_sense.data,