diff options
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 618fb1c1dd47..40fd66fbe4e1 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -3725,6 +3725,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name, | |||
3725 | dev = (struct net_device *) | 3725 | dev = (struct net_device *) |
3726 | (((long)p + NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST); | 3726 | (((long)p + NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST); |
3727 | dev->padded = (char *)dev - (char *)p; | 3727 | dev->padded = (char *)dev - (char *)p; |
3728 | dev->nd_net = &init_net; | ||
3728 | 3729 | ||
3729 | if (sizeof_priv) { | 3730 | if (sizeof_priv) { |
3730 | dev->priv = ((char *)dev + | 3731 | dev->priv = ((char *)dev + |