]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2cf9651d796a4028f0c7147df7c2826b16d0e324
treec061b50de3dd46e6671792a3b97b21531ea8b075
parent02d94fa88059b5596346e89b154d5c3ca1a7776f
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