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
..
2014-10-02 14:35:00 +08:00
2014-12-14 16:10:09 -08:00
2014-10-02 14:35:00 +08:00
2014-10-02 14:35:00 +08:00
2011-07-28 01:26:30 -07:00
2015-03-16 21:10:28 +01:00
2015-03-16 21:10:28 +01:00
2015-05-19 15:47:30 +02:00