diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-08-01 12:11:13 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-01 20:06:07 -0700 |
commit | 87173cd6cf242f2340db187d82bd47a48fe5e5fe (patch) | |
tree | 3d330c52a73b74f193162dbb8616bb8a248373da /drivers | |
parent | 4a0dee1ffe0e8f4101e704a325e97f8997b0abcc (diff) | |
download | linux-87173cd6cf242f2340db187d82bd47a48fe5e5fe.tar.bz2 |
ipvlan: Fix 64-bit statistics seqcount initialization
On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a
lockdep splat indicating this seqcount is not correctly initialized, fix
that by using the proper helper function: netdev_alloc_pcpu_stats().
Fixes: 2ad7bf363841 ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index f37e3c1fd4e7..8dab74a81303 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -192,7 +192,7 @@ static int ipvlan_init(struct net_device *dev) netdev_lockdep_set_classes(dev); - ipvlan->pcpu_stats = alloc_percpu(struct ipvl_pcpu_stats); + ipvlan->pcpu_stats = netdev_alloc_pcpu_stats(struct ipvl_pcpu_stats); if (!ipvlan->pcpu_stats) return -ENOMEM; |