datapath: Fix kernel panic on ovs_flow_free
authorAndy Zhou <azhou@nicira.com>
Wed, 22 Jan 2014 21:15:24 +0000 (13:15 -0800)
committerAndy Zhou <azhou@nicira.com>
Thu, 23 Jan 2014 09:40:37 +0000 (01:40 -0800)
commit738a2445c0c124f53df6abcffc6379746e99dee8
tree70e280ef6edeecfce7c8aa5c5f85483fc49253fd
parent2b5723094050a9e7b612809b5433f7a6fb9f953c
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>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/flow.c