projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a4fb0
)
net: Convert smack_net_ops
author
Kirill Tkhai
<ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:04:02 +0000
(16:04 +0300)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Feb 2018 16:01:39 +0000
(11:01 -0500)
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>
security/smack/smack_netfilter.c
patch
|
blob
|
history
diff --git
a/security/smack/smack_netfilter.c
b/security/smack/smack_netfilter.c
index e36d17835d4ff3dffff8bb42ed3e50bb7e1af571..3f29c03162ca571c7b1dcf90b15be21dc28fa43c 100644
(file)
--- 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)