diff options
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index e7f2b022316e..55d199e4ae21 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -1059,7 +1059,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event, | |||
1059 | in_dev = inetdev_init(dev); | 1059 | in_dev = inetdev_init(dev); |
1060 | if (!in_dev) | 1060 | if (!in_dev) |
1061 | return notifier_from_errno(-ENOMEM); | 1061 | return notifier_from_errno(-ENOMEM); |
1062 | if (dev == loopback_dev) { | 1062 | if (dev->flags & IFF_LOOPBACK) { |
1063 | IN_DEV_CONF_SET(in_dev, NOXFRM, 1); | 1063 | IN_DEV_CONF_SET(in_dev, NOXFRM, 1); |
1064 | IN_DEV_CONF_SET(in_dev, NOPOLICY, 1); | 1064 | IN_DEV_CONF_SET(in_dev, NOPOLICY, 1); |
1065 | } | 1065 | } |
@@ -1075,7 +1075,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event, | |||
1075 | case NETDEV_UP: | 1075 | case NETDEV_UP: |
1076 | if (dev->mtu < 68) | 1076 | if (dev->mtu < 68) |
1077 | break; | 1077 | break; |
1078 | if (dev == loopback_dev) { | 1078 | if (dev->flags & IFF_LOOPBACK) { |
1079 | struct in_ifaddr *ifa; | 1079 | struct in_ifaddr *ifa; |
1080 | if ((ifa = inet_alloc_ifa()) != NULL) { | 1080 | if ((ifa = inet_alloc_ifa()) != NULL) { |
1081 | ifa->ifa_local = | 1081 | ifa->ifa_local = |