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 ARM: arm-soc: multiplatform conversion patches 2012-12-13 10:57:16 -08:00
Makefile
amd-rng.c
atmel-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
bcm63xx-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
core.c hw_random: make buffer usable in scatterlist. 2013-03-05 10:11:41 +10:30
exynos-rng.c Char/Misc driver patches for 3.9-rc1 2013-02-21 13:57:13 -08:00
geode-rng.c
intel-rng.c
ixp4xx-rng.c
mxc-rnga.c
n2-asm.S
n2-drv.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
n2rng.h
nomadik-rng.c
octeon-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
omap-rng.c char: Convert to devm_ioremap_resource() 2013-01-22 11:41:56 -08:00
pasemi-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
picoxcell-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ppc4xx-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
pseries-rng.c
timeriomem-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
tpm-rng.c
tx4939-rng.c char: Convert to devm_ioremap_resource() 2013-01-22 11:41:56 -08:00
via-rng.c
virtio-rng.c virtio: rng: disallow multiple device registrations, fixes crashes 2013-03-08 11:30:43 +11:00