提交 d3e1101c 编写于 作者: H Hong Zhiguo 提交者: Jesse Gross

openvswitch: correct an invalid BUG_ON

table->count is uint32_t
Signed-off-by: NHong Zhiguo <honkiko@gmail.com>
Signed-off-by: NJesse Gross <jesse@nicira.com>
上级 a9341512
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册