diff options
author | 2009-06-12 22:16:39 -0600 | |
---|---|---|
committer | 2009-06-12 22:16:40 +0930 | |
commit | 594de1dd6449f79c99e1ba4577ea0e4e06e2b405 (patch) | |
tree | eeaa70736d1aa2b40433d5dc5c98195406591d85 /drivers/base/platform.c | |
parent | virtio_blk: add missing __dev{init,exit} markings (diff) | |
download | wireguard-linux-594de1dd6449f79c99e1ba4577ea0e4e06e2b405.tar.xz wireguard-linux-594de1dd6449f79c99e1ba4577ea0e4e06e2b405.zip |
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: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions