linux/drivers/char/hw_random
Martin Schwidefsky 17fb874dee hwrng: core - correct error check of kthread_run call
The kthread_run() function can return two different error values
but the hwrng core only checks for -ENOMEM. If the other error
value -EINTR is returned it is assigned to hwrng_fill and later
used on a kthread_stop() call which naturally crashes.

Cc: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-07-28 14:59:54 +08:00
..
amd-rng.c
atmel-rng.c
bcm63xx-rng.c hwrng: bcm63xx - Fix driver compilation 2015-05-04 17:49:52 +08:00
bcm2835-rng.c
core.c hwrng: core - correct error check of kthread_run call 2015-07-28 14:59:54 +08:00
exynos-rng.c hwrng: exynos - make use of devm_hwrng_register 2015-03-16 21:45:55 +11:00
geode-rng.c
intel-rng.c
iproc-rng200.c hwrng: iproc-rng200 - make use of devm_hwrng_register 2015-03-16 21:45:56 +11:00
ixp4xx-rng.c
Kconfig hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver 2015-03-06 22:51:34 +11:00
Makefile hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver 2015-03-06 22:51:34 +11:00
msm-rng.c hwrng: msm - make use of devm_hwrng_register 2015-03-16 21:45:55 +11:00
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c hwrng: octeon - remove incorrect __exit markups 2015-03-12 01:11:06 +11:00
omap3-rom-rng.c
omap-rng.c hwrng: omap - Change RNG_CONFIG_REG to RNG_CONTROL_REG in init 2015-03-17 22:32:05 +11:00
pasemi-rng.c char: constify of_device_id array 2015-03-16 21:10:28 +01:00
powernv-rng.c char: constify of_device_id array 2015-03-16 21:10:28 +01:00
ppc4xx-rng.c char: constify of_device_id array 2015-03-16 21:10:28 +01:00
pseries-rng.c hwrng: pseries - remove incorrect __init/__exit markups 2015-03-12 01:11:06 +11:00
timeriomem-rng.c
tpm-rng.c
tx4939-rng.c
via-rng.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
virtio-rng.c hwrng: virtio - drop extra empty line 2015-01-26 11:34:23 +11:00
xgene-rng.c hwrng: xgene - add ACPI support for APM X-Gene RNG unit 2015-03-09 21:06:19 +11:00