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
Kirill Smelkov
linux
Commits
51d9af05
Commit
51d9af05
authored
May 29, 2003
by
Stephen Hemminger
Committed by
David S. Miller
May 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Make delete bridge work with current unregister semantics.
parent
05d018c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
net/bridge/br_if.c
net/bridge/br_if.c
+6
-6
No files found.
net/bridge/br_if.c
View file @
51d9af05
...
...
@@ -170,11 +170,12 @@ int br_del_bridge(const char *name)
struct
net_device
*
dev
;
int
ret
=
0
;
dev
=
dev_get_by_name
(
name
);
rtnl_lock
();
dev
=
__dev_get_by_name
(
name
);
if
(
dev
==
NULL
)
ret
urn
-
ENXIO
;
/* Could not find device */
ret
=
-
ENXIO
;
/* Could not find device */
if
(
!
(
dev
->
priv_flags
&
IFF_EBRIDGE
))
{
else
if
(
!
(
dev
->
priv_flags
&
IFF_EBRIDGE
))
{
/* Attempt to delete non bridge device! */
ret
=
-
EPERM
;
}
...
...
@@ -186,11 +187,10 @@ int br_del_bridge(const char *name)
else
{
del_ifs
((
struct
net_bridge
*
)
dev
->
priv
);
unregister_netdev
(
dev
);
unregister_netdevice
(
dev
);
}
dev_put
(
dev
);
rtnl_unlock
(
);
return
ret
;
}
...
...
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