1
0
Fork 0

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>
hifive-unleashed-5.1
Frédéric Moulins 2008-11-28 22:12:02 -08:00 committed by David S. Miller
parent 5f23b73496
commit e635813514
1 changed files with 1 additions and 0 deletions

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);