]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/dev.c
[NET]: Initialize the network namespace of network devices.
[linux-2.6-omap-h63xx.git] / net / core / dev.c
index 618fb1c1dd477671573f45ac2c2359d44af862cb..40fd66fbe4e181de8433188286ae016b7f7ad40b 100644 (file)
@@ -3725,6 +3725,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name,
        dev = (struct net_device *)
                (((long)p + NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST);
        dev->padded = (char *)dev - (char *)p;
+       dev->nd_net = &init_net;
 
        if (sizeof_priv) {
                dev->priv = ((char *)dev +