Skip to content
Commit 30be8f8d authored by r.hering@avm.de's avatar r.hering@avm.de Committed by David S. Miller
Browse files

net/tls: Fix inverted error codes to avoid endless loop



sendfile() calls can hang endless with using Kernel TLS if a socket error occurs.
Socket error codes must be inverted by Kernel TLS before returning because
they are stored with positive sign. If returned non-inverted they are
interpreted as number of bytes sent, causing endless looping of the
splice mechanic behind sendfile().

Signed-off-by: default avatarRobert Hering <r.hering@avm.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 95ef498d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment