From: Frédéric Moulins Date: Sat, 29 Nov 2008 06:12:02 +0000 (-0800) Subject: pppol2tp: Add missing sock_put() in pppol2tp_release() X-Git-Tag: v2.6.28-rc8~73^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e6358135147807351db3b7782d3e198a1bba8b62;p=linux-2.6-omap-h63xx.git pppol2tp: Add missing sock_put() in pppol2tp_release() pppol2tp_sock_to_session() do sock_hold() if the session to release is not NULL. Signed-off-by: Frédéric Moulins Signed-off-by: David S. Miller --- diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 185b1dff10a..e98d9773158 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c @@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock) kfree_skb(skb); sock_put(sk); } + sock_put(sk); } release_sock(sk);