crypto: hisilicon/hpre - don't use GFP_KERNEL to alloc mem during softirq
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 19 Jul 2022 04:23:23 +0000 (12:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:35 +0000 (14:23 +0200)
commit0d11ab3db14b32007aa9906da983a206a9f9d867
treee9fb489bdeadff02491b6662b05174911d539833
parente5697a0a452943354046b9b9f6a4b19c169c12ab
crypto: hisilicon/hpre - don't use GFP_KERNEL to alloc mem during softirq

[ Upstream commit 98dfa9343f37bdd4112966292751e3a93aaf2e56 ]

The hpre encryption driver may be used to encrypt and decrypt packets
during the rx softirq, it is not allowed to use GFP_KERNEL.

Fixes: c8b4b477079d ("crypto: hisilicon - add HiSilicon HPRE accelerator")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/hpre/hpre_crypto.c