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 19:03:45 +0000 (11:03 -0800)
commit3d020f4134abfe9837898ed7b98981239e9b3ab0
treeb363491ecc66900753ca8c0d73c9550289c175c7
parenta4d3e338904f7276230bfcdebf11bfe7e7ff8a7e
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