Skip to content

Commit e11f40b

Browse files
Dan Carpenterdavem330
authored andcommitted
lwtunnel: use kfree_skb() instead of vanilla kfree()
kfree_skb() is correct here. Fixes: ffce419 ('lwtunnel: support dst output redirect function') Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 99d7662 commit e11f40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/lwtunnel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ int __lwtunnel_output(struct sock *sk, struct sk_buff *skb,
205205
return ret;
206206

207207
drop:
208-
kfree(skb);
208+
kfree_skb(skb);
209209

210210
return ret;
211211
}

0 commit comments

Comments
 (0)