From: Jarek Poplawski Date: Tue, 4 Mar 2008 04:48:53 +0000 (-0800) Subject: Subject: [PPPOL2TP] add missing sock_put() in pppol2tp_recv_dequeue() X-Git-Tag: v2.6.25-rc4~2^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c8fff1cf4e4e5e420c929469a09427aa37342928;p=linux-2.6-omap-h63xx.git Subject: [PPPOL2TP] add missing sock_put() in pppol2tp_recv_dequeue() Every skb removed from session->reorder_q needs sock_put(). Signed-off-by: Jarek Poplawski Acked-by: James Chapman Signed-off-by: David S. Miller --- diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index e0b072d9fdb..dcd499118b9 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c @@ -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; }