aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG. Liakhovetski <gl@dsa-ac.de>2007-03-26 19:07:40 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-06 03:43:13 -0700
commit6fcc93a729a1830abfee7ce3065a4dd750c1c6b1 (patch)
tree55991f1efb175cf855f39ecfdfc9c4fb8b1a4be8
parent00d3a8023ed6cb6c91004b38b50758a542fac645 (diff)
downloadlinux-linaro-stable-6fcc93a729a1830abfee7ce3065a4dd750c1c6b1.tar.gz
PPP: Fix PPP skb leak
[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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/net/ppp_generic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c
index c6de566188e4..ddf94ea8e561 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);
}