commit | e6358135147807351db3b7782d3e198a1bba8b62 | [log] [tgz] |
---|---|---|
author | Frédéric Moulins <frederic.moulins@alsatis.com> | Fri Nov 28 22:12:02 2008 -0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 28 22:12:02 2008 -0800 |
tree | 264681e0d2477f112736b65edb40fbaeb68dee25 | |
parent | 5f23b734963ec7eaa3ebcd9050da0c9b7d143dd3 [diff] [blame] |
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 <frederic.moulins@alsatis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 185b1df..e98d977 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c
@@ -1353,6 +1353,7 @@ kfree_skb(skb); sock_put(sk); } + sock_put(sk); } release_sock(sk);