mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
crypto: qat - honor CRYPTO_TFM_REQ_MAY_SLEEP flag
[ Upstream commit8fb203c65a] If a request has the flag CRYPTO_TFM_REQ_MAY_SLEEP set, allocate memory using the flag GFP_KERNEL otherwise use GFP_ATOMIC. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Stable-dep-of:eb7713f5ca("crypto: qat - unmap buffer before free for DH") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f6ee18555b
commit
9560559cba
3 changed files with 27 additions and 14 deletions
Loading…
Add table
Add a link
Reference in a new issue