Fix up a logic error in the checking for valid sense data. Signed-off-by: Brian King <brking@xxxxxxxxxx> --- linux-2.6-bjking1/drivers/scsi/ipr.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/scsi/ipr.c~ipr_autosense_fix drivers/scsi/ipr.c --- linux-2.6/drivers/scsi/ipr.c~ipr_autosense_fix 2006-08-02 13:54:26.000000000 -0500 +++ linux-2.6-bjking1/drivers/scsi/ipr.c 2006-08-02 13:54:26.000000000 -0500 @@ -4127,8 +4127,7 @@ static int ipr_get_autosense(struct ipr_ { 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, _ - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html