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
39d712cc
Commit
39d712cc
authored
Nov 19, 2002
by
David S. Miller
Committed by
Jeff Garzik
Nov 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VLAN]: remove vlan_devices[] entries properly.
parent
a2ef64a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
net/8021q/vlan.c
net/8021q/vlan.c
+5
-4
No files found.
net/8021q/vlan.c
View file @
39d712cc
...
@@ -229,11 +229,12 @@ static int unregister_vlan_dev(struct net_device *real_dev,
...
@@ -229,11 +229,12 @@ static int unregister_vlan_dev(struct net_device *real_dev,
if
(
real_dev
->
features
&
if
(
real_dev
->
features
&
(
NETIF_F_HW_VLAN_RX
|
NETIF_F_HW_VLAN_FILTER
))
{
(
NETIF_F_HW_VLAN_RX
|
NETIF_F_HW_VLAN_FILTER
))
{
real_dev
->
vlan_rx_kill_vid
(
real_dev
,
vlan_id
);
real_dev
->
vlan_rx_kill_vid
(
real_dev
,
vlan_id
);
}
else
{
}
br_write_lock
(
BR_NETPROTO_LOCK
);
br_write_lock
(
BR_NETPROTO_LOCK
);
grp
->
vlan_devices
[
vlan_id
]
=
NULL
;
grp
->
vlan_devices
[
vlan_id
]
=
NULL
;
br_write_unlock
(
BR_NETPROTO_LOCK
);
br_write_unlock
(
BR_NETPROTO_LOCK
);
}
/* Caller unregisters (and if necessary, puts)
/* Caller unregisters (and if necessary, puts)
* VLAN device, but we get rid of the reference to
* VLAN device, but we get rid of the reference to
...
...
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