aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjvrao <jvrao@linux.vnet.ibm.com>2011-06-30 23:18:39 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 11:40:16 -0700
commit8b1aebc0bef2e492a1857a1ea9dfc3ab7408b184 (patch)
tree2ef04cce79c055fd7ced519cb7ba70f7c105f1be /net
parent7b551b70695eb39e8bfcc29ae9883e66254cb12d (diff)
Fix the size of receive buffer packing onto VirtIO ring.
commit 114e6f3a5ede73d5b56e145f04680c61c3dd67c4 upstream. Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r--net/9p/trans_virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c
index 244e7074218..0ec5423b409 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);