]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
virtio-rng: fix boot with virtio-rng device
authorSasha Levin <sasha.levin@oracle.com>
Fri, 16 May 2014 02:11:57 +0000 (11:41 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 18 May 2014 23:56:38 +0000 (09:26 +0930)
commite5d23a8cc38c555f9f3a40dcc5d14030105df9a8
tree714704de1f499d2b4d07815fbc0e48c7efc75975
parent08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce
virtio-rng: fix boot with virtio-rng device

Commit "virtio-rng: support multiple virtio-rng devices" has broken
boot with a virtio-rng device because the 'init' callback of the
virtio-rng device was left unitialized to garbage, and got called
by the hwrng infrastructure, killing the guest on boot.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Fixes: 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce
drivers/char/hw_random/virtio-rng.c