Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3e1101c authored by Hong Zhiguo's avatar Hong Zhiguo Committed by Jesse Gross
Browse files

openvswitch: correct an invalid BUG_ON



table->count is uint32_t

Signed-off-by: default avatarHong Zhiguo <honkiko@gmail.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
parent a9341512
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.  */