]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/can/raw.c
Merge branch 'v28-range-hrtimers-for-linus-v2' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-omap-h63xx.git] / net / can / raw.c
index 3e46ee36a1aaf819b8ed4a8d7c6afcb7b8614948..6e0663faaf9fcdea78d0f57947489e429d764cdd 100644 (file)
@@ -210,7 +210,7 @@ static int raw_notifier(struct notifier_block *nb,
        struct raw_sock *ro = container_of(nb, struct raw_sock, notifier);
        struct sock *sk = &ro->sk;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        if (dev->type != ARPHRD_CAN)