Skip to contentSkip to conversation

Use socket helpers instead of direct fiddling with struct sock

NETROM Applied Ralf Baechle 2 participants 2 messages Jun 30, 2006 – Jul 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
 net/netrom/af_netrom.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/netrom/af_netrom.c +2 -2
Index: linux-net/net/netrom/af_netrom.c
===================================================================
@@ -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);