mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
nvmet-tcp: pass iov_len instead of sg->length to bvec_set_page()
commit1f0bbf2894upstream. 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>
This commit is contained in:
parent
6a04dc650c
commit
cbae610ca9
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue