Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295993
b: refs/heads/master
c: b719587
h: refs/heads/master
i:
  295991: 6bef0b8
v: v3
  • Loading branch information
Axel Lin authored and Ohad Ben-Cohen committed Feb 22, 2012
1 parent 4d3fc7b commit 44fcdfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ba60295ff4793e64fca91ffec9cc37f032b2a94
refs/heads/master: b719587eb46c588fabc71de97c28bafcf827acf7
8 changes: 4 additions & 4 deletions trunk/drivers/rpmsg/virtio_rpmsg_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,14 +720,14 @@ int rpmsg_send_offchannel_raw(struct rpmsg_channel *rpdev, u32 src, u32 dst,
mutex_lock(&vrp->tx_lock);

/* add message to the remote processor's virtqueue */
err = virtqueue_add_buf_gfp(vrp->svq, &sg, 1, 0, msg, GFP_KERNEL);
err = virtqueue_add_buf(vrp->svq, &sg, 1, 0, msg, GFP_KERNEL);
if (err < 0) {
/*
* need to reclaim the buffer here, otherwise it's lost
* (memory won't leak, but rpmsg won't use it again for TX).
* this will wait for a buffer management overhaul.
*/
dev_err(dev, "virtqueue_add_buf_gfp failed: %d\n", err);
dev_err(dev, "virtqueue_add_buf failed: %d\n", err);
goto out;
}

Expand Down Expand Up @@ -777,7 +777,7 @@ static void rpmsg_recv_done(struct virtqueue *rvq)
sg_init_one(&sg, msg, sizeof(*msg) + len);

/* add the buffer back to the remote processor's virtqueue */
err = virtqueue_add_buf_gfp(vrp->rvq, &sg, 0, 1, msg, GFP_KERNEL);
err = virtqueue_add_buf(vrp->rvq, &sg, 0, 1, msg, GFP_KERNEL);
if (err < 0) {
dev_err(dev, "failed to add a virtqueue buffer: %d\n", err);
return;
Expand Down Expand Up @@ -907,7 +907,7 @@ static int rpmsg_probe(struct virtio_device *vdev)

sg_init_one(&sg, cpu_addr, RPMSG_BUF_SIZE);

err = virtqueue_add_buf_gfp(vrp->rvq, &sg, 0, 1, cpu_addr,
err = virtqueue_add_buf(vrp->rvq, &sg, 0, 1, cpu_addr,
GFP_KERNEL);
WARN_ON(err < 0); /* sanity check; this can't really happen */
}
Expand Down

0 comments on commit 44fcdfb

Please sign in to comment.