projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a934151
)
openvswitch: correct an invalid BUG_ON
author
Hong Zhiguo
<honkiko@gmail.com>
Wed, 27 Mar 2013 12:41:17 +0000
(20:41 +0800)
committer
Jesse Gross
<jesse@nicira.com>
Wed, 27 Mar 2013 16:07:41 +0000
(09:07 -0700)
table->count is uint32_t
Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow.c
patch
|
blob
|
blame
|
history
diff --git
a/net/openvswitch/flow.c
b/net/openvswitch/flow.c
index fe0e4215c73d6045469ba006722ef223d43ebd66..67a2b783fe70257cb6c33542806d3f3ca17f3d76 100644
(file)
--- a/
net/openvswitch/flow.c
+++ b/
net/openvswitch/flow.c
@@
-795,9
+795,9
@@
void ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow)
void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow)
{
+ BUG_ON(table->count == 0);
hlist_del_rcu(&flow->hash_node[table->node_ver]);
table->count--;
- BUG_ON(table->count < 0);
}
/* The size of the argument for each %OVS_KEY_ATTR_* Netlink attribute. */