diff options
author | Martin K. Petersen <[email protected]> | 2012-09-26 22:39:44 -0400 |
---|---|---|
committer | James Bottomley <[email protected]> | 2013-02-24 09:26:18 +0000 |
commit | 4d24834dfd25f2dab5977241cd5a6662edde92f7 (patch) | |
tree | c6ab1936fcef076629dd2c54bd076d58e8c75951 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 9d2696e658ef4f209955ddaa987d43f1a1bd81a1 (diff) |
[SCSI] Fix range check in scsi_host_dif_capable()
The range checking from fe542396 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 <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions