Skip to content

Commit

Permalink
pppol2tp: Add missing sock_put() in pppol2tp_release()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frédéric Moulins authored and David S. Miller committed Nov 29, 2008
1 parent 5f23b73 commit e635813
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/pppol2tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock)
kfree_skb(skb);
sock_put(sk);
}
sock_put(sk);
}

release_sock(sk);
Expand Down

0 comments on commit e635813

Please sign in to comment.