tls: hw: rx: use return value of tls_device_decrypted() to carry status

[ Upstream commit 71471ca325 ]

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: f7fa16d498 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jakub Kicinski 2022-04-07 20:38:23 -07:00 • committed by Greg Kroah-Hartman
commit 1abd49fa1f
2 changed files with 4 additions and 8 deletions