Commit a2ccc85e authored by Raghava Aditya Renukunta's avatar Raghava Aditya Renukunta Committed by Kleber Sacilotto de Souza

scsi: aacraid: Fix typo in blink status

BugLink: https://bugs.launchpad.net/bugs/1810807

[ Upstream commit 934767c5 ]

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 avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 6c961aa5
...@@ -444,7 +444,7 @@ static int aac_src_check_health(struct aac_dev *dev) ...@@ -444,7 +444,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