Skip to contentSkip to conversation

lwtunnel: use kfree_skb() instead of vanilla kfree()

PATCH In review Dan Carpenter 2 participants 2 messages Jul 27, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lwtunnel: use kfree_skb() instead of vanilla kfree()

kfree_skb() is correct here.

Fixes ffce41962ef6 ('lwtunnel: support dst output redirect function')
net/core/lwtunnel.c +1 -1
index bb58826..5f7fae7 100644
@@ -205,7 +205,7 @@ int __lwtunnel_output(struct sock *sk, struct sk_buff *skb,
 	return ret;
 
 drop:
-	kfree(skb);
+	kfree_skb(skb);
 
 	return ret;
 }