aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index eb870fcc29cc..cfceb6616ec1 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -2428,19 +2428,19 @@ static int __net_init xfrm_statistics_init(struct net *net)
2428{ 2428{
2429 int rv; 2429 int rv;
2430 2430
2431 if (snmp_mib_init((void **)net->mib.xfrm_statistics, 2431 if (snmp_mib_init((void __percpu **)net->mib.xfrm_statistics,
2432 sizeof(struct linux_xfrm_mib)) < 0) 2432 sizeof(struct linux_xfrm_mib)) < 0)
2433 return -ENOMEM; 2433 return -ENOMEM;
2434 rv = xfrm_proc_init(net); 2434 rv = xfrm_proc_init(net);
2435 if (rv < 0) 2435 if (rv < 0)
2436 snmp_mib_free((void **)net->mib.xfrm_statistics); 2436 snmp_mib_free((void __percpu **)net->mib.xfrm_statistics);
2437 return rv; 2437 return rv;
2438} 2438}
2439 2439
2440static void xfrm_statistics_fini(struct net *net) 2440static void xfrm_statistics_fini(struct net *net)
2441{ 2441{
2442 xfrm_proc_fini(net); 2442 xfrm_proc_fini(net);
2443 snmp_mib_free((void **)net->mib.xfrm_statistics); 2443 snmp_mib_free((void __percpu **)net->mib.xfrm_statistics);
2444} 2444}
2445#else 2445#else
2446static int __net_init xfrm_statistics_init(struct net *net) 2446static int __net_init xfrm_statistics_init(struct net *net)