]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
openvswitch: Fix kernel panic on ovs_flow_free
authorAndy Zhou <azhou@nicira.com>
Tue, 21 Jan 2014 17:31:04 +0000 (09:31 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 5 Feb 2014 06:21:17 +0000 (22:21 -0800)
commite80857cce82da31e41a6599fc888dfc92e0167cc
tree307e621f4780b302065c4a922cab850c864ceab6
parentaea0bb4f8ee513537ad84b9f3f609f96e272d98e
openvswitch: 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>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c
net/openvswitch/flow_table.c
net/openvswitch/flow_table.h