bridge: add RCU annotations to bridge port lookup
br_port_get() renamed to br_port_get_rtnl() to make clear RTNL is held. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b5ed54e94d
commit
ec1e5610c0
@@ -37,10 +37,10 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
|
||||
int err;
|
||||
|
||||
/* not a port of a bridge */
|
||||
if (!br_port_exists(dev))
|
||||
p = br_port_get_rtnl(dev);
|
||||
if (!p)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
p = br_port_get(dev);
|
||||
br = p->br;
|
||||
|
||||
switch (event) {
|
||||
|
Reference in New Issue
Block a user