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
db7eae6e
Commit
db7eae6e
authored
Nov 04, 2003
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix OOPS on NETDEV_CHANGENAME events.
parent
848fd5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+6
-4
No files found.
net/ipv6/addrconf.c
View file @
db7eae6e
...
...
@@ -1877,10 +1877,12 @@ int addrconf_notify(struct notifier_block *this, unsigned long event,
break
;
case
NETDEV_CHANGENAME
:
#ifdef CONFIG_SYSCTL
addrconf_sysctl_unregister
(
&
idev
->
cnf
);
neigh_sysctl_unregister
(
idev
->
nd_parms
);
neigh_sysctl_register
(
dev
,
idev
->
nd_parms
,
NET_IPV6
,
NET_IPV6_NEIGH
,
"ipv6"
);
addrconf_sysctl_register
(
idev
,
&
idev
->
cnf
);
if
(
idev
)
{
addrconf_sysctl_unregister
(
&
idev
->
cnf
);
neigh_sysctl_unregister
(
idev
->
nd_parms
);
neigh_sysctl_register
(
dev
,
idev
->
nd_parms
,
NET_IPV6
,
NET_IPV6_NEIGH
,
"ipv6"
);
addrconf_sysctl_register
(
idev
,
&
idev
->
cnf
);
}
#endif
break
;
};
...
...
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