summaryrefslogtreecommitdiff
path: root/net/core/lwtunnel.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-07-27 11:07:47 +0300
committerDavid S. Miller <davem@davemloft.net>2015-07-27 11:24:59 +0300
commite11f40b9352f75d924cb216abcc5413b38d9288b (patch)
tree1ef48bbc34cafae34c2e19a54deca40acfca16db /net/core/lwtunnel.c
parent99d7662a04c4f9822b042f22ae37f8c7355c2d5a (diff)
downloadlinux-e11f40b9352f75d924cb216abcc5413b38d9288b.tar.xz
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 <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/lwtunnel.c')
-rw-r--r--net/core/lwtunnel.c2
1 files changed, 1 insertions, 1 deletions
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;
}