]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix an overget of the conn bundle when setting up a client conn
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Sep 2020 14:58:14 +0000 (15:58 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Sep 2020 15:18:59 +0000 (16:18 +0100)
commit112477a60ccf456378e131691091b54dfc0665f6
tree8305b654a4a88150abace664b19125dce465b1f1
parentb5494b24ec0ddb19a7e2f917caffb3a2375b8f5e
rxrpc: Fix an overget of the conn bundle when setting up a client conn

When setting up a client connection, a second ref is accidentally obtained
on the connection bundle (we get one when allocating the conn and a second
one when adding the conn to the bundle).

Fix it to only use the ref obtained by rxrpc_alloc_client_connection() and
not to add a second when adding the candidate conn to the bundle.

Fixes: f3133506e603 ("rxrpc: Rewrite the client connection manager")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/conn_client.c