Thread (2 messages) 2 messages, 2 authors, 2015-07-28

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

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2015-07-28 07:03:13

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 which naturally crashes.

Signed-off-by: Martin Schwidefsky <redacted>
Applied to crypto.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help