commit | 594de1dd6449f79c99e1ba4577ea0e4e06e2b405 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Fri Jun 12 22:16:39 2009 -0600 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Fri Jun 12 22:16:40 2009 +0930 |
tree | eeaa70736d1aa2b40433d5dc5c98195406591d85 | |
parent | 98e94444748e9af93423d1fab90543e75569a58c [diff] |
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>