git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd3778
)
net: Updates to netif_index_is_vrf
author
David Ahern
<dsa@cumulusnetworks.com>
Sun, 16 Aug 2015 13:49:20 +0000
(07:49 -0600)
committer
David S. Miller
<davem@davemloft.net>
Mon, 17 Aug 2015 22:55:15 +0000
(15:55 -0700)
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>
include/linux/netdevice.h
patch
|
blob
|
history
diff --cc
include/linux/netdevice.h
Simple merge