projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b553e
)
openvswitch: Use kmem_cache_free() instead of kfree()
author
Wei Yongjun
<
[email protected]
>
Wed, 8 Jan 2014 10:13:14 +0000
(18:13 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 9 Jan 2014 19:26:39 +0000
(14:26 -0500)
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 <
[email protected]
>
Acked-by: Jesse Gross <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/openvswitch/flow_table.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/flow_table.c
b/net/openvswitch/flow_table.c
index b430d42b2d0f6d4cd33cfb0e9c5f2df6187f787b..c58a0fe3c8892d4e09eb7377b60a06ae469efb09 100644
(file)
--- 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:
- k
free(
flow);
+ k
mem_cache_free(flow_cache,
flow);
return ERR_PTR(-ENOMEM);
}