Skip to content

Commit

Permalink
scsi: aacraid: Fix typo in blink status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Raghava Aditya Renukunta authored and Martin K. Petersen committed Mar 7, 2017
1 parent bd57119 commit 934767c
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 @@ -468,7 +468,7 @@ static int aac_src_check_health(struct aac_dev *dev)
return -1;

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

static inline u32 aac_get_vector(struct aac_dev *dev)
Expand Down

0 comments on commit 934767c

Please sign in to comment.