Phonet: fix skb leak in pipe endpoint accept()
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 7 Jul 2010 20:56:53 +0000 (20:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jul 2010 04:45:34 +0000 (21:45 -0700)
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep.c

index 94d72e8..b2a3ae6 100644 (file)
@@ -698,6 +698,7 @@ static struct sock *pep_sock_accept(struct sock *sk, int flags, int *errp)
                newsk = NULL;
                goto out;
        }
+       kfree_skb(oskb);
 
        sock_hold(sk);
        pep_sk(newsk)->listener = sk;