X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fcan%2Fbcm.c;h=d0dd382001e210c052e2fcb1ca6ae304d72b46a1;hb=f8e79ddd31c3615ddca26b9a469c44a7adbd4e13;hp=72c2ce904f83ab9f92109e33c6ed34f947a80a73;hpb=5373fdbdc1dba69aa956098650f71b731d471885;p=linux-2.6 diff --git a/net/can/bcm.c b/net/can/bcm.c index 72c2ce904f..d0dd382001 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c @@ -1303,7 +1303,7 @@ static int bcm_notifier(struct notifier_block *nb, unsigned long msg, struct bcm_op *op; int notify_enodev = 0; - if (dev_net(dev) != &init_net) + if (!net_eq(dev_net(dev), &init_net)) return NOTIFY_DONE; if (dev->type != ARPHRD_CAN)