提交 e6358135 编写于 作者: F Frédéric Moulins 提交者: 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: NFrédéric Moulins <frederic.moulins@alsatis.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册