lwtunnel: use kfree_skb() instead of vanilla kfree()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Jul 2015 08:07:47 +0000 (11:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 08:24:59 +0000 (01:24 -0700)
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>
net/core/lwtunnel.c

index bb58826c708d67680dde4013ebe3cc69d627c141..5f7fae70ef681cea3a2660b94058a5c5e54dc2e6 100644 (file)
@@ -205,7 +205,7 @@ int __lwtunnel_output(struct sock *sk, struct sk_buff *skb,
        return ret;
 
 drop:
-       kfree(skb);
+       kfree_skb(skb);
 
        return ret;
 }