aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 07447d1665e6..fedd7ab4085a 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2148,7 +2148,7 @@ replay:
2148 dev->ifindex = ifm->ifi_index; 2148 dev->ifindex = ifm->ifi_index;
2149 2149
2150 if (ops->newlink) { 2150 if (ops->newlink) {
2151 err = ops->newlink(net, dev, tb, data); 2151 err = ops->newlink(link_net ? : net, dev, tb, data);
2152 /* Drivers should call free_netdev() in ->destructor 2152 /* Drivers should call free_netdev() in ->destructor
2153 * and unregister it on failure after registration 2153 * and unregister it on failure after registration
2154 * so that device could be finally freed in rtnl_unlock. 2154 * so that device could be finally freed in rtnl_unlock.