linux/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 hw_random: add support for the TPM chip as a hardware RNG source 2012-08-22 11:11:41 -05:00
amd-rng.c hwrng: amd - manage resource allocation 2011-05-04 15:13:15 +10:00
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 include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ixp4xx-rng.c IXP4xx: HW pseudo-random generator is available on IXP45x/46x only. 2012-11-22 03:35:39 +00:00
mxc-rnga.c hwrng: mxc-rnga - Access data via structure 2012-09-07 04:17:07 +08:00
n2-asm.S
n2-drv.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
n2rng.h n2rng: Attach on Niagara-T3. 2011-07-28 01:26:30 -07:00
nomadik-rng.c ARM: 7362/1: AMBA: Add module_amba_driver() helper macro for amba_driver 2012-03-16 23:32:35 +00:00
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 powerpc/pseries/hwrng: PFO-based hwrng driver 2012-05-14 10:49:12 +10:00
timeriomem-rng.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
tpm-rng.c hw_random: add support for the TPM chip as a hardware RNG source 2012-08-22 11:11:41 -05:00
tx4939-rng.c char: Convert to devm_ioremap_resource() 2013-01-22 11:41:56 -08:00
via-rng.c hwrng: via_rng - Fix memory scribbling on some CPUs 2011-01-07 14:55:06 +11:00
virtio-rng.c virtio: rng: disallow multiple device registrations, fixes crashes 2013-03-08 11:30:43 +11:00