summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG. Liakhovetski <gl@dsa-ac.de>2007-03-26 06:04:09 +0400
committerDavid S. Miller <davem@davemloft.net>2007-03-26 06:04:09 +0400
commit165de5b7f2719c1984956504128545839762d635 (patch)
tree31c222bcc99fc7a2453a2da09f3f3f8b798359d5
parent035832a2806408ff209a0cb94bd64ea7dcf4d222 (diff)
downloadlinux-165de5b7f2719c1984956504128545839762d635.tar.xz
[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>
-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);
}