diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-04-21 12:19:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-21 17:15:27 +0200 |
commit | b777f4c47781df6b23e3f4df6fdb92d9aceac7bb (patch) | |
tree | 09f33669152fbb521e3e8f8cf7f91df5a158f784 /drivers/ntb | |
parent | ataflop: potential out of bounds in do_format() (diff) | |
download | linux-b777f4c47781df6b23e3f4df6fdb92d9aceac7bb.tar.xz linux-b777f4c47781df6b23e3f4df6fdb92d9aceac7bb.zip |
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 <lkp@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ntb')
0 files changed, 0 insertions, 0 deletions