diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 244e70742183dd689c347166885905baa1584e43..0ec5423b409e37bc8edcdb9e4f54217603fd41f2 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -367,7 +367,7 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req) 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);