Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SCSI] Fix range check in scsi_host_dif_capable()
The range checking from fe54239 was bad. We would still end up walking beyond the array as Type 3 is defined to be 4 in the protection bitmask. Instead use ARRAY_SIZE() for the range check. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
- Loading branch information