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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Frédéric Moulins 2008-11-28 22:12:02 -08:00 • committed by David S. Miller
commit e635813514

View file

@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock)
kfree_skb(skb);
sock_put(sk);
}
sock_put(sk);
}
release_sock(sk);