diff options
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index cfa199a9df00..a856cb47fc78 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -3243,13 +3243,16 @@ struct ccwgroup_driver qeth_l3_ccwgroup_driver = { | |||
3243 | EXPORT_SYMBOL_GPL(qeth_l3_ccwgroup_driver); | 3243 | EXPORT_SYMBOL_GPL(qeth_l3_ccwgroup_driver); |
3244 | 3244 | ||
3245 | static int qeth_l3_ip_event(struct notifier_block *this, | 3245 | static int qeth_l3_ip_event(struct notifier_block *this, |
3246 | unsigned long event, void *ptr) | 3246 | unsigned long event, void *ptr) |
3247 | { | 3247 | { |
3248 | struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; | 3248 | struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; |
3249 | struct net_device *dev = (struct net_device *)ifa->ifa_dev->dev; | 3249 | struct net_device *dev = (struct net_device *)ifa->ifa_dev->dev; |
3250 | struct qeth_ipaddr *addr; | 3250 | struct qeth_ipaddr *addr; |
3251 | struct qeth_card *card; | 3251 | struct qeth_card *card; |
3252 | 3252 | ||
3253 | if (dev->nd_net != &init_net) | ||
3254 | return NOTIFY_DONE; | ||
3255 | |||
3253 | QETH_DBF_TEXT(trace, 3, "ipevent"); | 3256 | QETH_DBF_TEXT(trace, 3, "ipevent"); |
3254 | card = qeth_l3_get_card_from_dev(dev); | 3257 | card = qeth_l3_get_card_from_dev(dev); |
3255 | if (!card) | 3258 | if (!card) |
@@ -3290,7 +3293,7 @@ static struct notifier_block qeth_l3_ip_notifier = { | |||
3290 | * IPv6 event handler | 3293 | * IPv6 event handler |
3291 | */ | 3294 | */ |
3292 | static int qeth_l3_ip6_event(struct notifier_block *this, | 3295 | static int qeth_l3_ip6_event(struct notifier_block *this, |
3293 | unsigned long event, void *ptr) | 3296 | unsigned long event, void *ptr) |
3294 | { | 3297 | { |
3295 | struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; | 3298 | struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; |
3296 | struct net_device *dev = (struct net_device *)ifa->idev->dev; | 3299 | struct net_device *dev = (struct net_device *)ifa->idev->dev; |