]> 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)
commite140abf96f8dea08537da67b98d375034ff58e11
treec061b50de3dd46e6671792a3b97b21531ea8b075
parent60a856c40bbee6c5374ef0eb55b1ee506c4f05b0
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