crypto: pcrypt - Do not clear MAY_SLEEP flag in original request
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Nov 2019 08:40:24 +0000 (16:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:31:01 +0000 (16:31 -0500)
commit0edb47dac317387cfc1b19cabcb47d08dd0906f3
tree0425edbf29bfa885bdb891a82cd46002201e2287
parent17c0d259c157f0e79a489673398be364bea38abe
crypto: pcrypt - Do not clear MAY_SLEEP flag in original request

commit e8d998264bffade3cfe0536559f712ab9058d654 upstream.

We should not be modifying the original request's MAY_SLEEP flag
upon completion.  It makes no sense to do so anyway.

Reported-by: Eric Biggers <ebiggers@kernel.org>
Fixes: 5068c7a883d1 ("crypto: pcrypt - Add pcrypt crypto...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/pcrypt.c