Re: [PATCH] hwrng: correct error check of kthread_run call

2015-07-28 Thread Herbert Xu
On Fri, Jul 24, 2015 at 01:13:30PM +0200, Martin Schwidefsky wrote: > 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 w

[PATCH] hwrng: correct error check of kthread_run call

2015-07-24 Thread Martin Schwidefsky
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. Signed-off-by: Martin Schwidefsky --- drivers/cha