Skip to content

Commit

Permalink
[PPP]: Don't leak an sk_buff on interface destruction.
Browse files Browse the repository at this point in the history
Signed-off-by: G. Liakhovetski <gl@dsa-ac.de>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
G. Liakhovetski authored and David S. Miller committed Mar 26, 2007
1 parent 035832a commit 165de5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2544,6 +2544,9 @@ static void ppp_destroy_interface(struct ppp *ppp)
ppp->active_filter = NULL;
#endif /* CONFIG_PPP_FILTER */

if (ppp->xmit_pending)
kfree_skb(ppp->xmit_pending);

kfree(ppp);
}

Expand Down

0 comments on commit 165de5b

Please sign in to comment.