From 77820b85fa9ed981dbb280404062259c676a6542 Mon Sep 17 00:00:00 2001 From: Hong Zhiguo Date: Wed, 27 Mar 2013 20:41:17 +0800 Subject: [PATCH] --- yaml --- r: 362621 b: refs/heads/master c: d3e1101c9b75574e68380b5cb10c9395fd8855de h: refs/heads/master i: 362619: cbd86ff3f72f064e7506c4aa6af659cf9f899211 v: v3 --- [refs] | 2 +- trunk/net/openvswitch/flow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fcd93efd78bd..24fab54d19dd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a9341512c372fcc628dabc619898d910a06c54bc +refs/heads/master: d3e1101c9b75574e68380b5cb10c9395fd8855de diff --git a/trunk/net/openvswitch/flow.c b/trunk/net/openvswitch/flow.c index fe0e4215c73d..67a2b783fe70 100644 --- a/trunk/net/openvswitch/flow.c +++ b/trunk/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. */