diff --git a/drivers/nvme/target/tcp.c b/drivers/nvme/target/tcp.c index 7a6fc0ec03b1..8f7984c53f3f 100644 --- a/drivers/nvme/target/tcp.c +++ b/drivers/nvme/target/tcp.c @@ -341,7 +341,7 @@ static void nvmet_tcp_build_pdu_iovec(struct nvmet_tcp_cmd *cmd) } iov->bv_page = sg_page(sg); - iov->bv_len = sg->length; + iov->bv_len = iov_len; iov->bv_offset = sg->offset + sg_offset; length -= iov_len;