diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 34b49a6a22fd..1f38401fc028 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1048,7 +1048,7 @@ void dev_load(struct net *net, const char *name) | |||
1048 | int dev_open(struct net_device *dev) | 1048 | int dev_open(struct net_device *dev) |
1049 | { | 1049 | { |
1050 | const struct net_device_ops *ops = dev->netdev_ops; | 1050 | const struct net_device_ops *ops = dev->netdev_ops; |
1051 | int ret = 0; | 1051 | int ret; |
1052 | 1052 | ||
1053 | ASSERT_RTNL(); | 1053 | ASSERT_RTNL(); |
1054 | 1054 | ||
@@ -1065,6 +1065,11 @@ int dev_open(struct net_device *dev) | |||
1065 | if (!netif_device_present(dev)) | 1065 | if (!netif_device_present(dev)) |
1066 | return -ENODEV; | 1066 | return -ENODEV; |
1067 | 1067 | ||
1068 | ret = call_netdevice_notifiers(NETDEV_PRE_UP, dev); | ||
1069 | ret = notifier_to_errno(ret); | ||
1070 | if (ret) | ||
1071 | return ret; | ||
1072 | |||
1068 | /* | 1073 | /* |
1069 | * Call device private open method | 1074 | * Call device private open method |
1070 | */ | 1075 | */ |