Use socket helpers instead of direct fiddling with struct sock
Subsystems (2)
Signed-off-by Ralf Baechle DL5RB <[email protected]>
net/netrom/af_netrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/netrom/af_netrom.c +2 -2
@@ -801,7 +801,7 @@ static int nr_accept(struct socket *sock/* Now attach up the new socket */ kfree_skb (skb); - sk->sk_ack_backlog--; +sk_acceptq_removed (sk); newsock->sk = newsk; out:
@@ -986,7 +986,7 @@ int nr_rx_frame(struct sk_buff *skb, str 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);
From: Ralf Baechle <[email protected]>
Date: Fri, 30 Jun 2006 14:46:48 +0100
Quoted 1 line
Signed-off-by Ralf Baechle DL5RB <[email protected]>
Applied, thanks Ralf.