]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PPP: Fix PPP skb leak
authorG. Liakhovetski <gl@dsa-ac.de>
Tue, 27 Mar 2007 02:07:40 +0000 (19:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Apr 2007 10:43:13 +0000 (03:43 -0700)
[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

index c6de566188e4d6db66667b1855031d90b9dc8524..ddf94ea8e56148be1c83dd6f9ab0b9d2b74c58e0 100644 (file)
@@ -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);
 }