From 9073578e38c1a04ab2faf79387d2797e65821334 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 10 Oct 2008 15:06:43 -0700 Subject: [PATCH] Free sk_buffs with kfree_skb() instead of just kfree(). --- datapath/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2