diff options
author | G. Liakhovetski <gl@dsa-ac.de> | 2007-03-25 19:04:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-03-25 19:04:09 -0700 |
commit | 165de5b7f2719c1984956504128545839762d635 (patch) | |
tree | 31c222bcc99fc7a2453a2da09f3f3f8b798359d5 /drivers/net | |
parent | 035832a2806408ff209a0cb94bd64ea7dcf4d222 (diff) |
[PPP]: Don't leak an sk_buff on interface destruction.
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ppp_generic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 11b575f8985..ef58e412878 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c @@ -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); } |