datapath: Fix race.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 11 Feb 2014 23:34:39 +0000 (15:34 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 13 Feb 2014 21:11:22 +0000 (13:11 -0800)
commit03fc2881382a9936f898e08d38bd8d623497409e
tree23cc662404b74188e16e849e2b9c6fb9ca8c31aa
parentdc43709014749ed924d4fcff63055320146cd018
datapath: 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>
datapath/datapath.c