]> git.hungrycats.org Git - linux/commit
tls: hw: rx: use return value of tls_device_decrypted() to carry status
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 03:38:23 +0000 (20:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commit1abd49fa1ffb43ef31369cfcfdc9d0409db4ea58
tree3cdc1d6fb88e2cef2846da593265a70fb3ffebc3
parent432d40036f173275fc89f2c154ce927ccb568b7a
tls: hw: rx: use return value of tls_device_decrypted() to carry status

[ Upstream commit 71471ca32505afa7c3f7f6a8268716e1ddb81cd4 ]

Instead of tls_device poking into internals of the message
return 1 from tls_device_decrypted() if the device handled
the decryption.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_device.c
net/tls/tls_sw.c