nvmet: for nvme admin set_features cmd, call nvmet_check_data_len_lte()
authorAmit Engel <Amit.Engel@dell.com>
Wed, 4 Jan 2023 08:44:32 +0000 (10:44 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 13:22:00 +0000 (14:22 +0100)
commitddf91717693f1ac524329a88f86ab09e66b18cbe
treeadc811f7b612fe7978597ec5832b3dd05b80a81f
parent99607843e7ed8ffeffc1010bd8001087db756535
nvmet: for nvme admin set_features cmd, call nvmet_check_data_len_lte()

This is due to the fact that the host is allowed to pass the controller
an sgl describing a buffer that is larger than the payload itself

Signed-off-by: Amit Engel <Amit.Engel@dell.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c