Skip to content

Commit

Permalink
Phonet: fix skb leak in pipe endpoint accept()
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Jul 9, 2010
1 parent 0453098 commit 635f081
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/phonet/pep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 635f081

Please sign in to comment.