aboutsummaryrefslogtreecommitdiffstats
path: root/net/ax25/af_ax25.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r--net/ax25/af_ax25.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index def6c42ad165..8d13a8bca0e0 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -104,6 +104,9 @@ static int ax25_device_event(struct notifier_block *this, unsigned long event,
104{ 104{
105 struct net_device *dev = (struct net_device *)ptr; 105 struct net_device *dev = (struct net_device *)ptr;
106 106
107 if (dev->nd_net != &init_net)
108 return NOTIFY_DONE;
109
107 /* Reject non AX.25 devices */ 110 /* Reject non AX.25 devices */
108 if (dev->type != ARPHRD_AX25) 111 if (dev->type != ARPHRD_AX25)
109 return NOTIFY_DONE; 112 return NOTIFY_DONE;