Skip to content

Commit

Permalink
scsi: aacraid: Fix typo in blink status
Browse files Browse the repository at this point in the history
[ Upstream commit 934767c ]

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

Fixes: c421530 (scsi: aacraid: Reorder Adpater status check)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Raghava Aditya Renukunta authored and Greg Kroah-Hartman committed Nov 10, 2018
1 parent 8ca1179 commit a7e0844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/aacraid/src.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static int aac_src_check_health(struct aac_dev *dev)
return -1;

err_blink:
return (status > 16) & 0xFF;
return (status >> 16) & 0xFF;
}

/**
Expand Down

0 comments on commit a7e0844

Please sign in to comment.