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 3fa8cdc0af51cd9dc4a932ff728a595fba8b784d..d2fcfa97eb785bdd16eaa03514bbd75f50a05897 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);