summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorG. Liakhovetski <gl@dsa-ac.de>2007-03-26 04:04:09 +0200
committerDavid S. Miller <davem@davemloft.net>2007-03-26 04:04:09 +0200
commit165de5b7f2719c1984956504128545839762d635 (patch)
tree31c222bcc99fc7a2453a2da09f3f3f8b798359d5 /drivers
parent[NET_SCHED]: Fix ingress locking (diff)
downloadlinux-165de5b7f2719c1984956504128545839762d635.tar.xz
linux-165de5b7f2719c1984956504128545839762d635.zip
[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')
-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 11b575f89856..ef58e4128782 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);
}