datapath: Fix kernel panic on ovs_flow_free
authorAndy Zhou <azhou@nicira.com>
Fri, 10 Jan 2014 23:57:04 +0000 (15:57 -0800)
committerAndy Zhou <azhou@nicira.com>
Fri, 17 Jan 2014 18:56:11 +0000 (10:56 -0800)
commitd103f479c6a4135935f9b12f5b4f4adc91e806c3
tree8f704aa8a19b5c2945582d19b118d53b5fa85382
parent55bc98d6cb340626eab68fa91eeffafe5e5a2339
datapath: Fix kernel panic on ovs_flow_free

Both mega flow mask's reference counter and per flow table mask list
should only be accessed when holding ovs_mutex() lock. However
this is not true with ovs_flow_table_flush(). The patch fixes this bug.

Reported-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
datapath/datapath.c
datapath/flow_table.c
datapath/flow_table.h