]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix a missing rxrpc_put_peer() in the error_report handler
authorDavid Howells <dhowells@redhat.com>
Mon, 15 Oct 2018 21:37:21 +0000 (22:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 06:13:42 +0000 (23:13 -0700)
commitb1fa33a9054bd18f5b7d432d4825f54dd7dc54c1
treef97ce997c4250d28edb65e9e77397ec00a161de1
parentdfca1574c05bc2588d87333d2e0b5b10937d0d52
rxrpc: Fix a missing rxrpc_put_peer() in the error_report handler

Fix a missing call to rxrpc_put_peer() on the main path through the
rxrpc_error_report() function.  This manifests itself as a ref leak
whenever an ICMP packet or other error comes in.

In commit 54e2b1010d06, the hand-off of the ref to a work item was removed
and was not replaced with a put.

Fixes: 54e2b1010d06 ("rxrpc: Fix error distribution")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/peer_event.c