]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: check fileio lba range access boundaries
authorSagi Grimberg <sagi@grimberg.me>
Wed, 11 Jul 2018 13:13:04 +0000 (16:13 +0300)
committerChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 13:55:51 +0000 (15:55 +0200)
commit22794d33460a2f41f9568e904afdb099aa16a842
tree21169eb86749df520103c101737a63b4bddebd62
parent38e1c0f46ea4f9d91575ab16ff9c02b09913c241
nvmet: check fileio lba range access boundaries

Fail out-of-bounds with a proper status code.

Fixes: af57dd9ccb9c ("nvmet: add simple file backed ns support")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-file.c