Commit 83aa7d13 authored by Raghava Aditya Renukunta's avatar Raghava Aditya Renukunta Committed by Greg Kroah-Hartman

scsi: aacraid: Fix typo in blink status

[ 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: 's avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: 's avatarRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: 's avatarDave Carroll <david.carroll@microsemi.com>
Signed-off-by: 's avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
parent b1f4be0e
......@@ -444,7 +444,7 @@ err_out:
return -1;
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