android_kernel_google_msm/drivers/char/hw_random
Amit Shah c8fba58532 virtio: rng: disallow multiple device registrations, fixes crashes
commit e84e7a56a3 upstream.

The code currently only supports one virtio-rng device at a time.
Invoking guests with multiple devices causes the guest to blow up.

Check if we've already registered and initialised the driver.  Also
cleanup in case of registration errors or hot-unplug so that a new
device can be used.

Reported-by: Peter Krempa <pkrempa@redhat.com>
Reported-by: <yunzheng@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-20 13:04:57 -07:00
..
amd-rng.c
atmel-rng.c
core.c hw_random: make buffer usable in scatterlist. 2013-03-14 11:29:42 -07:00
geode-rng.c
intel-rng.c
ixp4xx-rng.c
Kconfig
Makefile
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c
omap-rng.c
pasemi-rng.c
picoxcell-rng.c
ppc4xx-rng.c
timeriomem-rng.c
tx4939-rng.c
via-rng.c
virtio-rng.c virtio: rng: disallow multiple device registrations, fixes crashes 2013-03-20 13:04:57 -07:00