aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/selinux/include/xfrm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/include/xfrm.h b/security/selinux/include/xfrm.h
index 9f0584710c85..1450f85b946d 100644
--- a/security/selinux/include/xfrm.h
+++ b/security/selinux/include/xfrm.h
@@ -46,10 +46,11 @@ static inline void selinux_xfrm_notify_policyload(void)
46{ 46{
47 struct net *net; 47 struct net *net;
48 48
49 atomic_inc(&flow_cache_genid);
50 rtnl_lock(); 49 rtnl_lock();
51 for_each_net(net) 50 for_each_net(net) {
51 atomic_inc(&net->xfrm.flow_cache_genid);
52 rt_genid_bump_all(net); 52 rt_genid_bump_all(net);
53 }
53 rtnl_unlock(); 54 rtnl_unlock();
54} 55}
55#else 56#else