Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347467
b: refs/heads/master
c: 57e1a37
h: refs/heads/master
i:
  347465: 03227a3
  347463: 40a0a01
v: v3
  • Loading branch information
Rusty Russell committed Dec 18, 2012
1 parent f76d308 commit c44dd6d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0e3daa6491699640b9efc321d61310aee9a809d5
refs/heads/master: 57e1a37347d31c6b5c34eda1ecb2272f1803323d
6 changes: 2 additions & 4 deletions trunk/drivers/rpmsg/virtio_rpmsg_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ int rpmsg_send_offchannel_raw(struct rpmsg_channel *rpdev, u32 src, u32 dst,

/* add message to the remote processor's virtqueue */
err = virtqueue_add_buf(vrp->svq, &sg, 1, 0, msg, GFP_KERNEL);
if (err < 0) {
if (err) {
/*
* need to reclaim the buffer here, otherwise it's lost
* (memory won't leak, but rpmsg won't use it again for TX).
Expand All @@ -776,8 +776,6 @@ int rpmsg_send_offchannel_raw(struct rpmsg_channel *rpdev, u32 src, u32 dst,

/* tell the remote processor it has a pending message to read */
virtqueue_kick(vrp->svq);

err = 0;
out:
mutex_unlock(&vrp->tx_lock);
return err;
Expand Down Expand Up @@ -980,7 +978,7 @@ static int rpmsg_probe(struct virtio_device *vdev)

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

/* suppress "tx-complete" interrupts */
Expand Down

0 comments on commit c44dd6d

Please sign in to comment.