Explorar o código

Phonet: fix skb leak in pipe endpoint accept()

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Rémi Denis-Courmont %!s(int64=15) %!d(string=hai) anos
pai
achega
635f081541
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      net/phonet/pep.c

+ 1 - 0
net/phonet/pep.c

@@ -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;