diff options
author | 2020-10-16 15:33:51 +0100 | |
---|---|---|
committer | 2020-10-16 09:28:45 -0600 | |
commit | a48faebe65b0db55a73b9220c3d919eee849bb79 (patch) | |
tree | 0cfe505940239ea23f57eca478376dd0ec3b9f72 /drivers/usb/cdns3/cdns3-debug.h | |
parent | nbd: make the config put is called before the notifying the waiter (diff) | |
download | wireguard-linux-a48faebe65b0db55a73b9220c3d919eee849bb79.tar.xz wireguard-linux-a48faebe65b0db55a73b9220c3d919eee849bb79.zip |
lightnvm: fix out-of-bounds write to array devices->info[]
There is an off-by-one array check that can lead to a out-of-bounds
write to devices->info[i]. Fix this by checking by using >= rather
than > for the size check. Also replace hard-coded array size limit
with ARRAY_SIZE on the array.
Addresses-Coverity: ("Out-of-bounds write")
Fixes: cd9e9808d18f ("lightnvm: Support for Open-Channel SSDs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions