Free sk_buffs with kfree_skb() instead of just kfree().
authorJustin Pettit <jpettit@nicira.com>
Fri, 10 Oct 2008 22:06:43 +0000 (15:06 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 10 Oct 2008 22:06:43 +0000 (15:06 -0700)
datapath/datapath.c

index 3fa8cdc..d2fcfa9 100644 (file)
@@ -573,7 +573,7 @@ int dp_output_port(struct datapath *dp, struct sk_buff *skb, int out_port,
                if (!skb->dev) {
                        if (net_ratelimit())
                                printk("skb device not set forwarding to in_port\n");
-                       kfree(skb);
+                       kfree_skb(skb);
                        return -ESRCH;
                }
                return xmit_skb(skb);