summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-26 16:04:02 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-27 19:01:39 +0300
commit3edbccf96d2de30e7b986ceae090becfc07d3573 (patch)
tree5c5d9694c45de9a34528de7e14627425acfcc4b7 /security
parent79a4fb084326638b5e71e58e2207abffdf3ec031 (diff)
downloadlinux-3edbccf96d2de30e7b986ceae090becfc07d3573.tar.xz
net: Convert smack_net_ops
These pernet_operations only register and unregister nf hooks. So, they are able to be marked as async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
-rw-r--r--security/smack/smack_netfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/smack/smack_netfilter.c b/security/smack/smack_netfilter.c
index e36d17835d4f..3f29c03162ca 100644
--- a/security/smack/smack_netfilter.c
+++ b/security/smack/smack_netfilter.c
@@ -89,6 +89,7 @@ static void __net_exit smack_nf_unregister(struct net *net)
static struct pernet_operations smack_net_ops = {
.init = smack_nf_register,
.exit = smack_nf_unregister,
+ .async = true,
};
static int __init smack_nf_ip_init(void)