From: jvrao Date: Thu, 30 Jun 2011 23:18:39 +0000 (+0000) Subject: Fix the size of receive buffer packing onto VirtIO ring. X-Git-Tag: firefly_0821_release~7541^2~2788 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8b1aebc0bef2e492a1857a1ea9dfc3ab7408b184;p=firefly-linux-kernel-4.4.55.git Fix the size of receive buffer packing onto VirtIO ring. commit 114e6f3a5ede73d5b56e145f04680c61c3dd67c4 upstream. Signed-off-by: Venkateswararao Jujjuri " Reviewed-by: Aneesh Kumar K.V Signed-off-by: Eric Van Hensbergen Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 244e70742183..0ec5423b409e 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -367,7 +367,7 @@ req_retry_pinned: in += inp; } else { in = pack_sg_list(chan->sg, out, VIRTQUEUE_NUM, rdata, - client->msize); + req->rc->capacity); } err = virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc);