Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
53f02ec2
Commit
53f02ec2
authored
Jan 13, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Use dev_base_lock while traversing netdev list.
parent
ab627fcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/bridge/br_if.c
net/bridge/br_if.c
+2
-2
No files found.
net/bridge/br_if.c
View file @
53f02ec2
...
...
@@ -252,12 +252,12 @@ int br_get_bridge_ifindices(int *indices, int num)
struct
net_device
*
dev
;
int
i
=
0
;
r
tnl_shlock
(
);
r
ead_lock
(
&
dev_base_lock
);
for
(
dev
=
dev_base
;
dev
&&
i
<
num
;
dev
=
dev
->
next
)
{
if
(
dev
->
priv_flags
&
IFF_EBRIDGE
)
indices
[
i
++
]
=
dev
->
ifindex
;
}
r
tnl_shunlock
(
);
r
ead_unlock
(
&
dev_base_lock
);
return
i
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment