diff options
author | Eiichi Tsukata <eiichi.tsukata@nutanix.com> | 2021-11-21 04:16:07 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2021-11-29 15:39:40 +0000 |
commit | ca77fba821351190777b236ce749d7c4d353102e (patch) | |
tree | 905ec8e2da586f4a8eedbf21504c56f3553b7a9e /net/rxrpc/call_event.c | |
parent | 619ca0d0108a5866cca7793bd7e19c5d7a30e750 (diff) | |
download | linux-ca77fba821351190777b236ce749d7c4d353102e.tar.gz linux-ca77fba821351190777b236ce749d7c4d353102e.tar.bz2 linux-ca77fba821351190777b236ce749d7c4d353102e.zip |
rxrpc: Fix rxrpc_peer leak in rxrpc_look_up_bundle()
Need to call rxrpc_put_peer() for bundle candidate before kfree() as it
holds a ref to rxrpc_peer.
[DH: v2: Changed to abstract out the bundle freeing code into a function]
Fixes: 245500d853e9 ("rxrpc: Rewrite the client connection manager")
Signed-off-by: Eiichi Tsukata <eiichi.tsukata@nutanix.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Link: https://lore.kernel.org/r/20211121041608.133740-1-eiichi.tsukata@nutanix.com/ # v1
Diffstat (limited to 'net/rxrpc/call_event.c')
0 files changed, 0 insertions, 0 deletions