diff options
author | Guennadi Liakhovetski <gl@dsa-ac.de> | 2007-03-28 22:00:29 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-28 22:00:29 +0200 |
commit | b66597d697d7e75cde9c484f223e467a11342de4 (patch) | |
tree | 8ffdaa177596c98a31ecadeff75f8f5e8076d9b5 | |
parent | b50f212883c001575f2aee338f7142bba0d5e60f (diff) | |
download | lwn-b66597d697d7e75cde9c484f223e467a11342de4.tar.gz lwn-b66597d697d7e75cde9c484f223e467a11342de4.zip |
[PPP]: Don't leak an sk_buff on interface destruction.
Signed-off-by: Guennadi Liakhovetski <gl@dsa-ac.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r-- | drivers/net/ppp_generic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 0245e40b51a1..e37648c256fc 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c @@ -2551,6 +2551,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); } |