diff options
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index d594b5af5f6b..662e47b0bcc3 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -2114,8 +2114,16 @@ out_bydst: | |||
2114 | 2114 | ||
2115 | void xfrm_state_fini(struct net *net) | 2115 | void xfrm_state_fini(struct net *net) |
2116 | { | 2116 | { |
2117 | struct xfrm_audit audit_info; | ||
2117 | unsigned int sz; | 2118 | unsigned int sz; |
2118 | 2119 | ||
2120 | flush_work(&net->xfrm.state_hash_work); | ||
2121 | audit_info.loginuid = -1; | ||
2122 | audit_info.sessionid = -1; | ||
2123 | audit_info.secid = 0; | ||
2124 | xfrm_state_flush(net, IPSEC_PROTO_ANY, &audit_info); | ||
2125 | flush_work(&net->xfrm.state_gc_work); | ||
2126 | |||
2119 | WARN_ON(!list_empty(&net->xfrm.state_all)); | 2127 | WARN_ON(!list_empty(&net->xfrm.state_all)); |
2120 | 2128 | ||
2121 | sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head); | 2129 | sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head); |