Commit 6fcc93a7 authored by G. Liakhovetski's avatar G. Liakhovetski Committed by Greg Kroah-Hartman

PPP: Fix PPP skb leak

[PPP]: Don't leak an sk_buff on interface destruction.
Signed-off-by: default avatarG. Liakhovetski <gl@dsa-ac.de>
Acked-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 00d3a802
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment