diff options
author | Marc Dionne <marc.dionne@auristor.com> | 2019-04-12 16:33:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-12 16:57:23 -0700 |
commit | 56d282d9db19f85f759b7a81f0829b58c00571b0 (patch) | |
tree | b4b3bb72d318d8eff5abb5f8707d3adfcc37f106 /include | |
parent | 1dc2b3d65523780ed1972d446c76e62e13f3e8f5 (diff) | |
download | linux-stable-56d282d9db19f85f759b7a81f0829b58c00571b0.tar.gz linux-stable-56d282d9db19f85f759b7a81f0829b58c00571b0.tar.bz2 linux-stable-56d282d9db19f85f759b7a81f0829b58c00571b0.zip |
rxrpc: Clear socket error
When an ICMP or ICMPV6 error is received, the error will be attached
to the socket (sk_err) and the report function will get called.
Clear any pending error here by calling sock_error().
This would cause the following attempt to use the socket to fail with
the error code stored by the ICMP error, resulting in unexpected errors
with various side effects depending on the context.
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Jonathan Billings <jsbillin@umich.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions