aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Brace <[email protected]>2015-07-18 11:12:28 -0500
committerJames Bottomley <[email protected]>2015-08-26 16:21:39 -0700
commit81c275576bcee1a80e046117c7923586216a2dd4 (patch)
tree2f8df08bae02685caf49e8847e5b1121764fee04
parent77678d3a35455d7b7c4da4e56b20de17ee63cec1 (diff)
hpsa: correct decode sense data
Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Kevin Barnett <[email protected]> Reviewed-by: Scott Teel <[email protected]> Reviewed-by: Tomas Henzl <[email protected]> Signed-off-by: Don Brace <[email protected]> Signed-off-by: James Bottomley <[email protected]>
-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) {