From: David Ahern Date: Sun, 16 Aug 2015 13:49:20 +0000 (-0600) Subject: net: Updates to netif_index_is_vrf X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f52bdcf6ba1bd81597b1505a222430676548b3a;p=pandora-kernel.git net: Updates to netif_index_is_vrf As Eric noted netif_index_is_vrf is not called with rcu_read_lock held, so wrap the dev_get_by_index_rcu in rcu_read_lock and unlock. If VRF is not enabled or oif is 0 skip the device lookup. In both cases index cannot be the VRF master. Signed-off-by: David Ahern Signed-off-by: David S. Miller --- Reading git-diff-tree failed