]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix race.
authorJarno Rajahalme <jrajahalme@nicira.com>
Sun, 16 Feb 2014 01:42:29 +0000 (17:42 -0800)
committerJesse Gross <jesse@nicira.com>
Sun, 16 Feb 2014 01:42:29 +0000 (17:42 -0800)
commitb7a3812440e69c0e722ec4f89b36f4a44ffe207a
tree57448c732f703451d3e7a96ff9e736ea62acd1dc
parent0a9440784d084ab040321ba1ca8a54c45a99a0e0
openvswitch: Fix race.

ovs_vport_cmd_dump() did rcu_read_lock() only after getting the
datapath, which could have been deleted in between.  Resolved by
taking rcu_read_lock() before the get_dp() call.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
net/openvswitch/datapath.c