linux/drivers/nvme
Varun Prakash cbae610ca9 nvmet-tcp: pass iov_len instead of sg->length to bvec_set_page()
commit 1f0bbf2894 upstream.

iov_len is the valid data length, so pass iov_len instead of sg->length to
bvec_set_page().

Fixes: 5bfaba275a ("nvmet-tcp: don't map pages which can't come from HIGHMEM")
Signed-off-by: Rakshana Sridhar <rakshanas@chelsio.com>
Signed-off-by: Varun Prakash <varun@chelsio.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-02-11 13:35:34 +01:00
..
host nvme: fix PCIe subsystem reset controller state transition 2026-02-06 16:42:02 +01:00
target nvmet-tcp: pass iov_len instead of sg->length to bvec_set_page() 2026-02-11 13:35:34 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00