diff options
| author | Jakub Kicinski <[email protected]> | 2024-02-07 01:18:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-02-10 21:38:19 +0000 |
| commit | ac437a51ce662364062f704e321227f6728e6adc (patch) | |
| tree | 84abf52508c34c7012e6d7a5c23a20996cf83050 /net/unix/garbage.c | |
| parent | selftests: tls: use exact comparison in recv_partial (diff) | |
| download | kernel-ac437a51ce662364062f704e321227f6728e6adc.tar.gz kernel-ac437a51ce662364062f704e321227f6728e6adc.zip | |
net: tls: fix returned read length with async decrypt
We double count async, non-zc rx data. The previous fix was
lucky because if we fully zc async_copy_bytes is 0 so we add 0.
Decrypted already has all the bytes we handled, in all cases.
We don't have to adjust anything, delete the erroneous line.
Fixes: 4d42cd6bc2ac ("tls: rx: fix return value for async crypto")
Co-developed-by: Sabrina Dubroca <[email protected]>
Signed-off-by: Sabrina Dubroca <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
