]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: scompress - don't sleep with preemption disabled
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 21 Jul 2017 15:42:36 +0000 (16:42 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Aug 2017 05:52:44 +0000 (13:52 +0800)
commit3c08377262880afc1621ab9cb6dbe7df47a6033d
tree69dcde2fb5ca3d990f557eee71047d2f5556eab7
parent9166c44358346c0a92b11fd4e24925efff791648
crypto: scompress - don't sleep with preemption disabled

Due to the use of per-CPU buffers, scomp_acomp_comp_decomp() executes
with preemption disabled, and so whether the CRYPTO_TFM_REQ_MAY_SLEEP
flag is set is irrelevant, since we cannot sleep anyway. So disregard
the flag, and use GFP_ATOMIC unconditionally.

Cc: <stable@vger.kernel.org> # v4.10+
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scompress.c