1
0
Fork 0

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>
hifive-unleashed-5.1
Don Brace 2015-07-18 11:12:28 -05:00 committed by James Bottomley
parent 77678d3a35
commit 81c275576b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {