summaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2015-08-16 07:49:20 -0600
committerDavid S. Miller <davem@davemloft.net>2015-08-17 15:55:15 -0700
commit2f52bdcf6ba1bd81597b1505a222430676548b3a (patch)
treedd5fc84765a9c327b4008d0e22530636f1002fff /net/ipv4/af_inet.c
parent9cd3778cd7e8f165675705511cfcd4ea6eb88d27 (diff)
downloadop-kernel-dev-2f52bdcf6ba1bd81597b1505a222430676548b3a.zip
op-kernel-dev-2f52bdcf6ba1bd81597b1505a222430676548b3a.tar.gz
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 <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud