original_kernel/drivers/char/hw_random
Amit Shah e84e7a56a3 virtio: rng: disallow multiple device registrations, fixes crashes
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>
Cc: stable@kernel.org
2013-03-08 11:30:43 +11:00
..
Kconfig
Makefile
amd-rng.c
atmel-rng.c
bcm63xx-rng.c
core.c
exynos-rng.c
geode-rng.c
intel-rng.c
ixp4xx-rng.c
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
pseries-rng.c
timeriomem-rng.c
tpm-rng.c
tx4939-rng.c
via-rng.c
virtio-rng.c