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:18:14 +0000 (13:18 -0800)
commitb05dd42a168e0e028748f8de7d4a63b761b2d687
tree5d79a77a9b16afbd153e8081d358d72cf3d97862
parent88e2419e2d4366363ad29e23e4038757d895d350
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>
datapath/datapath.c