ofproto: Hold ofproto_mutex when enabling or disabling eviction.
ofproto_enable_eviction() and ofproto_disable_eviction() require ofproto_mutex (and they were even annotated that way, though not on their prototypes but only at definition), but it wasn't being held. This fixes the problem. Found by inspection. Signed-off-by: Ben Pfaff <email@example.com> Acked-by: Jarno Rajahalme <firstname.lastname@example.org>
Showing with 12 additions and 10 deletions