]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Clear socket error
authorMarc Dionne <marc.dionne@auristor.com>
Fri, 12 Apr 2019 15:33:40 +0000 (16:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 23:57:23 +0000 (16:57 -0700)
commitf2e0950980cd5962fff0b2c055dde4eab04c01ec
treeb4b3bb72d318d8eff5abb5f8707d3adfcc37f106
parentc806a10548ca37aa6f336b8711f3dd3f4bf56952
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>
net/rxrpc/peer_event.c