aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <gl@dsa-ac.de>2007-03-28 22:00:29 +0200
committerAdrian Bunk <bunk@stusta.de>2007-03-28 22:00:29 +0200
commitb66597d697d7e75cde9c484f223e467a11342de4 (patch)
tree8ffdaa177596c98a31ecadeff75f8f5e8076d9b5 /drivers
parentb50f212883c001575f2aee338f7142bba0d5e60f (diff)
[PPP]: Don't leak an sk_buff on interface destruction.
Signed-off-by: Guennadi Liakhovetski <gl@dsa-ac.de> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-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 0245e40b51a..e37648c256f 100644
--- a/drivers/net/ppp_generic.c
+++ b/drivers/net/ppp_generic.c
@@ -2551,6 +2551,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);
}