diff options
author | David S. Miller <davem@davemloft.net> | 2017-08-01 20:06:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-01 20:06:07 -0700 |
commit | 12c5d0c0485fd03127e24848af0f0aff399d2db9 (patch) | |
tree | 3d330c52a73b74f193162dbb8616bb8a248373da /drivers/net/gtp.c | |
parent | 1bff8a0c1f8c236209ee369b7952751c04eaa71a (diff) | |
parent | 87173cd6cf242f2340db187d82bd47a48fe5e5fe (diff) |
Merge branch 'net-Fix-64-bit-statistics-seqcount-init'
Florian Fainelli says:
====================
drivers: net: Fix 64-bit statistics seqcount init
This patch series fixes a bunch of drivers to have their 64-bit statistics
seqcount cookie be initialized correctly. Most of these drivers (except b44,
gtp) are probably used on 64-bit only hosts and so the lockdep splat might have
never been seen.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gtp.c')
-rw-r--r-- | drivers/net/gtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c index 1542e837fdfa..f38e32a7ec9c 100644 --- a/drivers/net/gtp.c +++ b/drivers/net/gtp.c @@ -364,7 +364,7 @@ static int gtp_dev_init(struct net_device *dev) gtp->dev = dev; - dev->tstats = alloc_percpu(struct pcpu_sw_netstats); + dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); if (!dev->tstats) return -ENOMEM; |