Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247736
b: refs/heads/master
c: 2a64255
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 19, 2011
1 parent 64ebf86 commit 84fc691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9d10c497c3728a5c798c11486dccdc01b2092a8
refs/heads/master: 2a64255019e13dd975f1487cec32b873bcb76da6
3 changes: 2 additions & 1 deletion trunk/net/rxrpc/ar-peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *srx, gfp_t gfp)
/* we can now add the new candidate to the list */
peer = candidate;
candidate = NULL;
usage = atomic_read(&peer->usage);

list_add_tail(&peer->link, &rxrpc_peers);
write_unlock_bh(&rxrpc_peer_lock);
Expand All @@ -171,7 +172,7 @@ struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *srx, gfp_t gfp)
&peer->srx.transport.sin.sin_addr,
ntohs(peer->srx.transport.sin.sin_port));

_leave(" = %p {u=%d}", peer, atomic_read(&peer->usage));
_leave(" = %p {u=%d}", peer, usage);
return peer;

/* we found the peer in the list immediately */
Expand Down

0 comments on commit 84fc691

Please sign in to comment.