projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc7b9e
)
virtio_rng: use simplified virtqueue accessors.
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:29 +0000
(15:44 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:15:03 +0000
(15:45 +1030)
We never add buffers with input and output parts, so use the new accessors.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Asias He <asias@redhat.com>
drivers/char/hw_random/virtio-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/virtio-rng.c
b/drivers/char/hw_random/virtio-rng.c
index
10fd71c
..
842e2d5
100644
(file)
--- a/
drivers/char/hw_random/virtio-rng.c
+++ b/
drivers/char/hw_random/virtio-rng.c
@@
-47,7
+47,7
@@
static void register_buffer(u8 *buf, size_t size)
sg_init_one(&sg, buf, size);
/* There should always be room for one buffer. */
- if (virtqueue_add_
buf(vq, &sg, 0
, 1, buf, GFP_KERNEL) < 0)
+ if (virtqueue_add_
inbuf(vq, &sg
, 1, buf, GFP_KERNEL) < 0)
BUG();
virtqueue_kick(vq);