[patch 13/37] PPP: Fix PPP skb leak

Greg KH
2007-03-30T21:23:27Z

[-- Attachment #1: ppp-fix-ppp-skb-leak.patch --]
[-- Type: text/plain, Size: 732 bytes --]

-stable review patch. If anyone has any objections, please let us know.

------------------
From: G. Liakhovetski <gl@dsa-ac.de>

[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>

---
drivers/net/ppp_generic.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/net/ppp_generic.c
+++ b/drivers/net/ppp_generic.c
@@ -2544,6 +2544,9 @@ static void ppp_destroy_interface(struct
ppp->active_filter = NULL;
#endif /* CONFIG_PPP_FILTER */

+ if (ppp->xmit_pending)
+ kfree_skb(ppp->xmit_pending);
+
kfree(ppp);
}

--