From: Justin Pettit Date: Fri, 10 Oct 2008 22:06:43 +0000 (-0700) Subject: Free sk_buffs with kfree_skb() instead of just kfree(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9073578e38c1a04ab2faf79387d2797e65821334;p=openvswitch Free sk_buffs with kfree_skb() instead of just kfree(). --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 3fa8cdc0..d2fcfa97 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -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);