openvswitch: correct an invalid BUG_ON
Subsystems (3)
PATCH 1/1 openvswitch: correct an invalid BUG_ON
table->count is uint32_t
Signed-off-by Hong Zhiguo <[email protected]>
--- net/openvswitch/flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/openvswitch/flow.c +1 -1
@@ -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. */
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 1364388077-30480-1-git-send-email-honkiko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Jesse Gross
AppliedQuoted 3 lines · Hong Zhiguo
table->countisuint32_tSigned-off-by Hong Zhiguo <[email protected]>
Applied, thanks.
Thanks for your review comments. I re-patched according to your comments. Please help to review it. Thanks.
Quoted 6 lines · Jesse Gross
Quoted 3 lines · Hong Zhiguo
table->countisuint32_tSigned-off-by Hong Zhiguo <[email protected]>Applied, thanks.
Signature · 2 lines
best regards Hong Zhiguo