Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81c27557 authored by Don Brace's avatar Don Brace Committed by James Bottomley
Browse files

hpsa: correct decode sense data

parent 77678d3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {