From: Rusty Russell Date: Sat, 13 Jun 2009 04:16:39 +0000 (-0600) Subject: virtio: handle short buffers in virtio_rng. X-Git-Tag: v2.6.31-rc1~369^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594de1dd6449f79c99e1ba4577ea0e4e06e2b405;p=pandora-kernel.git 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 --- Reading git-diff-tree failed