aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-04-21 13:19:45 +0300
committerJens Axboe <[email protected]>2021-04-21 09:15:27 -0600
commitb777f4c47781df6b23e3f4df6fdb92d9aceac7bb (patch)
tree09f33669152fbb521e3e8f8cf7f91df5a158f784 /include/linux/overflow.h
parent1ffec389a6431782a8a28805830b6fae9bf00af1 (diff)
ataflop: fix off by one in ataflop_probe()
Smatch complains that the "type > NUM_DISK_MINORS" should be >= instead of >. We also need to subtract one from "type" at the start. Fixes: bf9c0538e485 ("ataflop: use a separate gendisk for each media format") Reported-by: kernel test robot <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions