diff options
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/ar-peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/ar-peer.c b/net/rxrpc/ar-peer.c index b6ff06351d6..2754f098d43 100644 --- a/net/rxrpc/ar-peer.c +++ b/net/rxrpc/ar-peer.c | |||
@@ -157,6 +157,7 @@ struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *srx, gfp_t gfp) | |||
157 | /* we can now add the new candidate to the list */ | 157 | /* we can now add the new candidate to the list */ |
158 | peer = candidate; | 158 | peer = candidate; |
159 | candidate = NULL; | 159 | candidate = NULL; |
160 | usage = atomic_read(&peer->usage); | ||
160 | 161 | ||
161 | list_add_tail(&peer->link, &rxrpc_peers); | 162 | list_add_tail(&peer->link, &rxrpc_peers); |
162 | write_unlock_bh(&rxrpc_peer_lock); | 163 | write_unlock_bh(&rxrpc_peer_lock); |
@@ -171,7 +172,7 @@ success: | |||
171 | &peer->srx.transport.sin.sin_addr, | 172 | &peer->srx.transport.sin.sin_addr, |
172 | ntohs(peer->srx.transport.sin.sin_port)); | 173 | ntohs(peer->srx.transport.sin.sin_port)); |
173 | 174 | ||
174 | _leave(" = %p {u=%d}", peer, atomic_read(&peer->usage)); | 175 | _leave(" = %p {u=%d}", peer, usage); |
175 | return peer; | 176 | return peer; |
176 | 177 | ||
177 | /* we found the peer in the list immediately */ | 178 | /* we found the peer in the list immediately */ |