projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SELinux: fix sleeping allocation in security_context_to_sid
[firefly-linux-kernel-4.4.55.git]
/
net
/
netfilter
/
nf_sockopt.c
diff --git
a/net/netfilter/nf_sockopt.c
b/net/netfilter/nf_sockopt.c
index 3dd4b3c76d811a6545a0a26140f59ac237020ea4..69d699f95f4c92658ba85608e2f9eb69c635c346 100644
(file)
--- a/
net/netfilter/nf_sockopt.c
+++ b/
net/netfilter/nf_sockopt.c
@@
-65,7
+65,7
@@
static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, int pf,
{
struct nf_sockopt_ops *ops;
- if (s
k->sk_net
!= &init_net)
+ if (s
ock_net(sk)
!= &init_net)
return ERR_PTR(-ENOPROTOOPT);
if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)