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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <schwidefsky@xxxxxxxxxx>

Applied to crypto.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux