aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/pppol2tp.c
diff options
context:
space:
mode:
authorFrédéric Moulins <frederic.moulins@alsatis.com>2008-11-28 22:12:02 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-12-13 15:29:12 -0800
commit7bbe882cb07909b6a77fb4418184c30748491b7b (patch)
tree213a73f4d3b215e7070b3566592634975c02316d /drivers/net/pppol2tp.c
parent2e7cb04dcda1dd2dcc49f3a679da9bf59f1cabec (diff)
pppol2tp: Add missing sock_put() in pppol2tp_release()
[ Upstream commit e6358135147807351db3b7782d3e198a1bba8b62 ] 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>
Diffstat (limited to 'drivers/net/pppol2tp.c')
-rw-r--r--drivers/net/pppol2tp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index ff175e8f36b..de80ba4482f 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);