diff options
author | Varun Prakash <[email protected]> | 2023-08-09 15:56:45 +0530 |
---|---|---|
committer | Keith Busch <[email protected]> | 2023-08-21 12:54:02 -0700 |
commit | 1f0bbf28940cf5edad90ab57b62aa8197bf5e836 (patch) | |
tree | fc4be806fe8841ee24d20c7a3224d780edc6f1d5 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 851e06297f20bbd85c93bbf09469f2150d1db218 (diff) |
nvmet-tcp: pass iov_len instead of sg->length to bvec_set_page()
iov_len is the valid data length, so pass iov_len instead of sg->length to
bvec_set_page().
Fixes: 5bfaba275ae6 ("nvmet-tcp: don't map pages which can't come from HIGHMEM")
Signed-off-by: Rakshana Sridhar <[email protected]>
Signed-off-by: Varun Prakash <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions