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:19:58 +0000 (13:19 -0800)
commit51d38c2a9e3a73a48bf8178214d99b944412cca6
tree4d8a409df8306225bf4b906dcd9942f5be721abc
parent251241003ff0b281ac18634b1a31997c3fe17ec6
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