]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
pppol2tp: Add missing sock_put() in pppol2tp_release()
authorFrédéric Moulins <frederic.moulins@alsatis.com>
Sat, 29 Nov 2008 06:12:02 +0000 (22:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Nov 2008 06:12:02 +0000 (22:12 -0800)
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>
drivers/net/pppol2tp.c

index 185b1dff10a8d572494c391aebf515133a56b2ff..e98d9773158d287ba1ae35052dca968fc6cf5735 100644 (file)
@@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socket *sock)
                        kfree_skb(skb);
                        sock_put(sk);
                }
+               sock_put(sk);
        }
 
        release_sock(sk);