mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
openvswitch: correct an invalid BUG_ON
table->count is uint32_t Signed-off-by: Hong Zhiguo <[email protected]> Signed-off-by: Jesse Gross <[email protected]>
This commit is contained in:
parent
a9341512c3
commit
d3e1101c9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue