ofproto: Don't destroy mutex before its use.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 22 Apr 2014 17:18:02 +0000 (10:18 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 25 Apr 2014 14:48:25 +0000 (07:48 -0700)
commit5c09b672114fab2357c8ce71d608d486eb5ae1ae
treef39c4f51736d6177bc5455a8fce005a4f2e9f1f5
parenta4fdb0f3bdbfff1924afefd19239260ed429c193
ofproto: Don't destroy mutex before its use.

Currently, we are calling guarded_list_destroy()
to destroy a mutex and then go ahead and use it through
delete_group
 ->delete_group__
   ->handle_flow_mod__
    ->run_rule_executes
     ->guarded_list_pop_all

The group related unit tests cause ovs-vswitchd to crash
because of this (on windows).

Calling guarded_list_destroy() after delete_group() solves the
problem.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c