]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: tls: factor out tls_*crypt_async_wait()
authorJakub Kicinski <kuba@kernel.org>
Wed, 7 Feb 2024 01:18:18 +0000 (17:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:52 +0000 (09:24 +0100)
commitde31df6f87207dc2a5c02185a435471b35b8a49c
tree1673392385908a780bffa6b9853bd4b9800cb35b
parent5e01c54ebcaff527ccf58dfea4392090ed159721
net: tls: factor out tls_*crypt_async_wait()

[ Upstream commit c57ca512f3b68ddcd62bda9cc24a8f5584ab01b1 ]

Factor out waiting for async encrypt and decrypt to finish.
There are already multiple copies and a subsequent fix will
need more. No functional changes.

Note that crypto_wait_req() returns wait->err

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: aec7961916f3 ("tls: fix race between async notify and socket close")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c