Skip to content

Commit

Permalink
lwtunnel: use kfree_skb() instead of vanilla kfree()
Browse files Browse the repository at this point in the history
kfree_skb() is correct here.

Fixes: ffce419 ('lwtunnel: support dst output redirect function')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jul 27, 2015
1 parent 99d7662 commit e11f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/lwtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int __lwtunnel_output(struct sock *sk, struct sk_buff *skb,
return ret;

drop:
kfree(skb);
kfree_skb(skb);

return ret;
}
Expand Down

0 comments on commit e11f40b

Please sign in to comment.