diff options
| author | Ralf Baechle DL5RB <ralf@linux-mips.org> | 2006-07-03 22:31:14 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2006-07-03 22:31:14 -0400 |
| commit | 18601a7d30c8340af4d786793ee52828471d2630 (patch) | |
| tree | f3451f508f4784323829bb6618dbd0ca9bdd604d | |
| parent | 006f68b84fe19fc5015a8cf838a10d75f91f0218 (diff) | |
[NETROM]: Use socket helpers instead of direct fiddling with struct sock
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/netrom/af_netrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index eba6df054b1f..389a4119e1b4 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
| @@ -800,7 +800,7 @@ static int nr_accept(struct socket *sock, struct socket *newsock, int flags) | |||
| 800 | 800 | ||
| 801 | /* Now attach up the new socket */ | 801 | /* Now attach up the new socket */ |
| 802 | kfree_skb(skb); | 802 | kfree_skb(skb); |
| 803 | sk->sk_ack_backlog--; | 803 | sk_acceptq_removed(sk); |
| 804 | newsock->sk = newsk; | 804 | newsock->sk = newsk; |
| 805 | 805 | ||
| 806 | out: | 806 | out: |
| @@ -985,7 +985,7 @@ int nr_rx_frame(struct sk_buff *skb, struct net_device *dev) | |||
| 985 | nr_make->vr = 0; | 985 | nr_make->vr = 0; |
| 986 | nr_make->vl = 0; | 986 | nr_make->vl = 0; |
| 987 | nr_make->state = NR_STATE_3; | 987 | nr_make->state = NR_STATE_3; |
| 988 | sk->sk_ack_backlog++; | 988 | sk_acceptq_added(sk); |
| 989 | 989 | ||
| 990 | nr_insert_socket(make); | 990 | nr_insert_socket(make); |
| 991 | 991 | ||
