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>
This commit is contained in:
parent
77678d3a35
commit
81c275576b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue