On Sat, Dec 15, 2018 at 12:41:53PM -0800, Eric Biggers wrote:
> From: Eric Biggers <[email protected]>
> 
> skcipher_walk_virt() can still sleep even with atomic=true, since that
> only affects the later calls to skcipher_walk_done().  But,
> skcipher_walk_virt() only has to allocate memory for some input data
> layouts, so incorrectly calling it with preemption disabled can go
> undetected.  Use might_sleep() so that it's detected reliably.
> 
> Signed-off-by: Eric Biggers <[email protected]>
> ---
>  crypto/skcipher.c | 2 ++
>  1 file changed, 2 insertions(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to