Commit db7eae6e authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6]: Fix OOPS on NETDEV_CHANGENAME events.

parent 848fd5f3
...@@ -1877,10 +1877,12 @@ int addrconf_notify(struct notifier_block *this, unsigned long event, ...@@ -1877,10 +1877,12 @@ int addrconf_notify(struct notifier_block *this, unsigned long event,
break; break;
case NETDEV_CHANGENAME: case NETDEV_CHANGENAME:
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
addrconf_sysctl_unregister(&idev->cnf); if (idev) {
neigh_sysctl_unregister(idev->nd_parms); addrconf_sysctl_unregister(&idev->cnf);
neigh_sysctl_register(dev, idev->nd_parms, NET_IPV6, NET_IPV6_NEIGH, "ipv6"); neigh_sysctl_unregister(idev->nd_parms);
addrconf_sysctl_register(idev, &idev->cnf); neigh_sysctl_register(dev, idev->nd_parms, NET_IPV6, NET_IPV6_NEIGH, "ipv6");
addrconf_sysctl_register(idev, &idev->cnf);
}
#endif #endif
break; break;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment