Message ID | 20150718161228.31955.89625.stgit@brunhilda (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 18.7.2015 18:12, Don Brace wrote: > Reported-by: Dan Carpenter <dan.carpenter@oracle.com> > Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com> > Reviewed-by: Scott Teel <scott.teel@pmcs.com> > Signed-off-by: Don Brace <don.brace@pmcs.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Tomas > --- > drivers/scsi/hpsa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c > index 1d5f4fd..e9b2073 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) { > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 1d5f4fd..e9b2073 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) {