aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/hdlc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan/hdlc.c')
-rw-r--r--drivers/net/wan/hdlc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c
index 3b57350eacca..ee23b91f23d9 100644
--- a/drivers/net/wan/hdlc.c
+++ b/drivers/net/wan/hdlc.c
@@ -109,6 +109,9 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event,
109 unsigned long flags; 109 unsigned long flags;
110 int on; 110 int on;
111 111
112 if (dev->nd_net != &init_net)
113 return NOTIFY_DONE;
114
112 if (dev->get_stats != hdlc_get_stats) 115 if (dev->get_stats != hdlc_get_stats)
113 return NOTIFY_DONE; /* not an HDLC device */ 116 return NOTIFY_DONE; /* not an HDLC device */
114 117