]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: validate the block size in nbd_set_size
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 14:57:00 +0000 (15:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:34:14 +0000 (08:34 -0700)
commit5716b21a6f3273c697b745138ca5d126d39969a9
tree3d5a1e14a57ba5953c02b1414dc0f8e30aa2dab6
parent6034e892dbad3dcf71a51a140a24647621a36345
nbd: validate the block size in nbd_set_size

Move the validation of the block from the callers into nbd_set_size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c