summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-01-08 11:13:14 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-09 20:26:39 +0100
commitece37c87ab5aa65ad9c55d781c0f40092aeb49eb (patch)
treeda3bd3623cf4b60fd7b5545c08124702b3a4ab06 /net/openvswitch
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/pablo/... (diff)
downloadlinux-ece37c87ab5aa65ad9c55d781c0f40092aeb49eb.tar.xz
linux-ece37c87ab5aa65ad9c55d781c0f40092aeb49eb.zip
openvswitch: Use kmem_cache_free() instead of kfree()
memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree(). Fixes: e298e5057006 ('openvswitch: Per cpu flow stats.') Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Jesse Gross <jesse@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/flow_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c
index b430d42b2d0f..c58a0fe3c889 100644
--- a/net/openvswitch/flow_table.c
+++ b/net/openvswitch/flow_table.c
@@ -104,7 +104,7 @@ struct sw_flow *ovs_flow_alloc(bool percpu_stats)
}
return flow;
err:
- kfree(flow);
+ kmem_cache_free(flow_cache, flow);
return ERR_PTR(-ENOMEM);
}