diff options
author | Frédéric Moulins <frederic.moulins@alsatis.com> | 2008-11-29 01:12:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-29 01:12:02 -0500 |
commit | e6358135147807351db3b7782d3e198a1bba8b62 (patch) | |
tree | 264681e0d2477f112736b65edb40fbaeb68dee25 /drivers/net | |
parent | 5f23b734963ec7eaa3ebcd9050da0c9b7d143dd3 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pppol2tp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 185b1dff10a8..e98d9773158d 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
@@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock) | |||
1353 | kfree_skb(skb); | 1353 | kfree_skb(skb); |
1354 | sock_put(sk); | 1354 | sock_put(sk); |
1355 | } | 1355 | } |
1356 | sock_put(sk); | ||
1356 | } | 1357 | } |
1357 | 1358 | ||
1358 | release_sock(sk); | 1359 | release_sock(sk); |