mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ovsdb-idl: Fix double-remove in ovsdb_idl_condition_reset().
Both ovsdb_idl_condition_reset() and ovsdb_idl_clause_free() call ovs_list_remove() on the clause's 'node' member, but it should only be called once. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
This commit is contained in:
@@ -753,7 +753,6 @@ ovsdb_idl_condition_reset(struct ovsdb_idl *idl,
|
||||
struct ovsdb_idl_table *table = ovsdb_idl_table_from_class(idl, tc);
|
||||
|
||||
LIST_FOR_EACH_SAFE (c, next, node, &table->condition.clauses) {
|
||||
ovs_list_remove(&c->node);
|
||||
ovsdb_idl_clause_free(c);
|
||||
}
|
||||
idl->cond_changed = table->cond_changed = true;
|
||||
|
Reference in New Issue
Block a user