Commit e6358135 authored by Frédéric Moulins's avatar Frédéric Moulins Committed by David S. Miller

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: default avatarFrédéric Moulins <frederic.moulins@alsatis.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f23b734
......@@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock)
kfree_skb(skb);
sock_put(sk);
}
sock_put(sk);
}
release_sock(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment