linux-stable/drivers/nvme
Dan Carpenter 4daf7fa07e nvme-auth: fix off by one checks
The > ARRAY_SIZE() checks need to be >= ARRAY_SIZE() to prevent reading
one element beyond the end of the arrays.

Fixes: db1312dd95 ("nvmet: implement basic In-Band Authentication")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-08-02 17:22:48 -06:00
..
common nvme-auth: fix off by one checks 2022-08-02 17:22:48 -06:00
host nvme: define compat_ioctl again to unbreak 32-bit userspace. 2022-08-02 17:22:48 -06:00
target nvmet-auth: expire authentication sessions 2022-08-02 17:14:50 -06:00
Kconfig nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
Makefile nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00