From: G. Liakhovetski Date: Mon, 26 Mar 2007 02:04:09 +0000 (-0700) Subject: [PPP]: Don't leak an sk_buff on interface destruction. X-Git-Tag: v2.6.21-rc6~114^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=165de5b7f2719c1984956504128545839762d635;p=linux-2.6-omap-h63xx.git [PPP]: Don't leak an sk_buff on interface destruction. Signed-off-by: G. Liakhovetski Acked-by: Paul Mackerras Signed-off-by: David S. Miller --- 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); }