From: Dan Carpenter Date: Mon, 27 Jul 2015 08:07:47 +0000 (+0300) Subject: lwtunnel: use kfree_skb() instead of vanilla kfree() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e11f40b9352f75d924cb216abcc5413b38d9288b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git lwtunnel: use kfree_skb() instead of vanilla kfree() kfree_skb() is correct here. Fixes: ffce41962ef6 ('lwtunnel: support dst output redirect function') Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/net/core/lwtunnel.c b/net/core/lwtunnel.c index bb58826c708d..5f7fae70ef68 100644 --- a/net/core/lwtunnel.c +++ b/net/core/lwtunnel.c @@ -205,7 +205,7 @@ int __lwtunnel_output(struct sock *sk, struct sk_buff *skb, return ret; drop: - kfree(skb); + kfree_skb(skb); return ret; }