diff options
Diffstat (limited to 'net/can/bcm.c')
-rw-r--r-- | net/can/bcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/bcm.c b/net/can/bcm.c index bd4282dae754..e9f99b2c6bc9 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c | |||
@@ -1285,7 +1285,7 @@ static int bcm_notifier(struct notifier_block *nb, unsigned long msg, | |||
1285 | struct bcm_op *op; | 1285 | struct bcm_op *op; |
1286 | int notify_enodev = 0; | 1286 | int notify_enodev = 0; |
1287 | 1287 | ||
1288 | if (dev->nd_net != &init_net) | 1288 | if (dev_net(dev) != &init_net) |
1289 | return NOTIFY_DONE; | 1289 | return NOTIFY_DONE; |
1290 | 1290 | ||
1291 | if (dev->type != ARPHRD_CAN) | 1291 | if (dev->type != ARPHRD_CAN) |