Skip to content

Commit

Permalink
[NETROM]: Use socket helpers instead of direct fiddling with struct sock
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ralf Baechle DL5RB authored and David S. Miller committed Jul 4, 2006
1 parent 006f68b commit 18601a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netrom/af_netrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ static int nr_accept(struct socket *sock, struct socket *newsock, int flags)

/* Now attach up the new socket */
kfree_skb(skb);
sk->sk_ack_backlog--;
sk_acceptq_removed(sk);
newsock->sk = newsk;

out:
Expand Down Expand Up @@ -985,7 +985,7 @@ int nr_rx_frame(struct sk_buff *skb, struct net_device *dev)
nr_make->vr = 0;
nr_make->vl = 0;
nr_make->state = NR_STATE_3;
sk->sk_ack_backlog++;
sk_acceptq_added(sk);

nr_insert_socket(make);

Expand Down

0 comments on commit 18601a7

Please sign in to comment.