OSDN Git Service

nvmet-tcp: Don't check data_len in nvmet_tcp_map_data()
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 23 Oct 2019 16:35:39 +0000 (10:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:41 +0000 (10:56 -0700)
commite0bace71779d602e419a2f3b35f3bff2cfc638a3
tree5f4ab4b7168802ba0ca6f0ba5ea524b5038df632
parente08f2ae850929d40e66268ee47e443e7ea56eeb7
nvmet-tcp: Don't check data_len in nvmet_tcp_map_data()

None of the other transports check data_len which is verified
in core code. The function should instead check that the sgl length
is non-zero.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/tcp.c