summaryrefslogtreecommitdiff
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2024-08-17 14:58:35 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-10 11:57:26 +0200
commitb60d2bc676e4e89c37f6c3ce3504b5cef21c8357 (patch)
treecd9f4529286018f569bd76477d92728bbd6fb3b2 /net/core/netpoll.c
parent0f6dab0b79f13f49fa9c92711008b9671edc0491 (diff)
crypto: simd - Do not call crypto_alloc_tfm during registration
[ Upstream commit 3c44d31cb34ce4eb8311a2e73634d57702948230 ] Algorithm registration is usually carried out during module init, where as little work as possible should be carried out. The SIMD code violated this rule by allocating a tfm, this then triggers a full test of the algorithm which may dead-lock in certain cases. SIMD is only allocating the tfm to get at the alg object, which is in fact already available as it is what we are registering. Use that directly and remove the crypto_alloc_tfm call. Also remove some obsolete and unused SIMD API. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core/netpoll.c')
0 files changed, 0 insertions, 0 deletions