tls: rx: return the already-copied data on crypto error
authorJakub Kicinski <kuba@kernel.org>
Mon, 11 Apr 2022 19:19:14 +0000 (12:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 10:45:39 +0000 (11:45 +0100)
commitf314bfee81b1bf8e01168177b2f65f24eb8da63a
treec061b50de3dd46e6671792a3b97b21531ea8b075
parent4dcdd971b9c7a5c38f65d81f7c548fea2e337373
tls: rx: return the already-copied data on crypto error

async crypto handler will report the socket error no need
to report it again. We can, however, let the data we already
copied be reported to user space but we need to make sure
the error will be reported next time around.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c