Message ID | 20150727080747.GA2937@mwanda |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Dan Carpenter <dan.carpenter@oracle.com> Date: Mon, 27 Jul 2015 11:07:47 +0300 > kfree_skb() is correct here. > > Fixes: ffce41962ef6 ('lwtunnel: support dst output redirect function') > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Oops, good catch. Applied, thanks Dan. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/core/lwtunnel.c b/net/core/lwtunnel.c index bb58826..5f7fae7 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; }
kfree_skb() is correct here. Fixes: ffce41962ef6 ('lwtunnel: support dst output redirect function') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html