diff options
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r-- | drivers/net/ifb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index a3bed28197d2..c14d39bf32d0 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c | |||
@@ -265,6 +265,7 @@ MODULE_PARM_DESC(numifbs, "Number of ifb devices"); | |||
265 | static int __init ifb_init_one(int index) | 265 | static int __init ifb_init_one(int index) |
266 | { | 266 | { |
267 | struct net_device *dev_ifb; | 267 | struct net_device *dev_ifb; |
268 | struct ifb_private *dp; | ||
268 | int err; | 269 | int err; |
269 | 270 | ||
270 | dev_ifb = alloc_netdev(sizeof(struct ifb_private), | 271 | dev_ifb = alloc_netdev(sizeof(struct ifb_private), |
@@ -273,6 +274,10 @@ static int __init ifb_init_one(int index) | |||
273 | if (!dev_ifb) | 274 | if (!dev_ifb) |
274 | return -ENOMEM; | 275 | return -ENOMEM; |
275 | 276 | ||
277 | dp = netdev_priv(dev_ifb); | ||
278 | u64_stats_init(&dp->rsync); | ||
279 | u64_stats_init(&dp->tsync); | ||
280 | |||
276 | dev_ifb->rtnl_link_ops = &ifb_link_ops; | 281 | dev_ifb->rtnl_link_ops = &ifb_link_ops; |
277 | err = register_netdevice(dev_ifb); | 282 | err = register_netdevice(dev_ifb); |
278 | if (err < 0) | 283 | if (err < 0) |