Commit eddc7255 authored by Raghava Aditya Renukunta's avatar Raghava Aditya Renukunta Committed by Ben Hutchings

scsi: aacraid: Fix typo in blink status

commit 934767c5 upstream.

The return status of the adapter check on KERNEL_PANIC is supposed to be
the upper 16 bits of the OMR status register.

Fixes: c421530b (scsi: aacraid: Reorder Adpater status check)
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: default avatarDave Carroll <david.carroll@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 785fd5e9
...@@ -390,7 +390,7 @@ static int aac_src_check_health(struct aac_dev *dev) ...@@ -390,7 +390,7 @@ static int aac_src_check_health(struct aac_dev *dev)
return -1; return -1;
err_blink: err_blink:
return (status > 16) & 0xFF; return (status >> 16) & 0xFF;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment