Skip to content

Commit

Permalink
Subject: [PPPOL2TP] add missing sock_put() in pppol2tp_recv_dequeue()
Browse files Browse the repository at this point in the history
Every skb removed from session->reorder_q needs sock_put().

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Mar 4, 2008
1 parent 8e8440f commit c8fff1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/pppol2tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ static void pppol2tp_recv_dequeue(struct pppol2tp_session *session)
skb_queue_len(&session->reorder_q));
__skb_unlink(skb, &session->reorder_q);
kfree_skb(skb);
sock_put(session->sock);
continue;
}

Expand Down

0 comments on commit c8fff1c

Please sign in to comment.