mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
b5ed54e94d
commit
ec1e5610c0
4 changed files with 8 additions and 7 deletions
|
@ -475,7 +475,7 @@ int br_del_if(struct net_bridge *br, struct net_device *dev)
|
|||
{
|
||||
struct net_bridge_port *p;
|
||||
|
||||
p = br_port_get(dev);
|
||||
p = br_port_get_rtnl(dev);
|
||||
if (!p || p->br != br)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue