Skip to content
Snippets Groups Projects
Commit 594de1dd authored by Rusty Russell's avatar Rusty Russell
Browse files

virtio: handle short buffers in virtio_rng.


If the device fills less than 4 bytes of our random buffer, we'll
BUG_ON.  It's nicer to handle the case where it partially fills the
buffer (the protocol doesn't explicitly bad that).

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 98e94444
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment