summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorDon Brace <don.brace@pmcs.com>2015-07-18 11:12:28 -0500
committerJames Bottomley <JBottomley@Odin.com>2015-08-26 16:21:39 -0700
commit81c275576bcee1a80e046117c7923586216a2dd4 (patch)
tree2f8df08bae02685caf49e8847e5b1121764fee04 /drivers/scsi/hpsa.c
parent77678d3a35455d7b7c4da4e56b20de17ee63cec1 (diff)
downloadlinux-81c275576bcee1a80e046117c7923586216a2dd4.tar.gz
linux-81c275576bcee1a80e046117c7923586216a2dd4.tar.bz2
linux-81c275576bcee1a80e046117c7923586216a2dd4.zip
hpsa: correct decode sense data
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com> Reviewed-by: Scott Teel <scott.teel@pmcs.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Don Brace <don.brace@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index cb11421f9cb8..ce9122d37a8b 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -325,7 +325,7 @@ static int check_for_unit_attention(struct ctlr_info *h,
decode_sense_data(c->err_info->SenseInfo, sense_len,
&sense_key, &asc, &ascq);
- if (sense_key != UNIT_ATTENTION || asc == -1)
+ if (sense_key != UNIT_ATTENTION || asc == 0xff)
return 0;
switch (asc) {