projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ip: Fix data-races around sysctl_ip_prot_sock.
[platform/kernel/linux-starfive.git]
/
include
/
net
/
ip.h
diff --git
a/include/net/ip.h
b/include/net/ip.h
index
4a15b6b
..
1c979fd
100644
(file)
--- a/
include/net/ip.h
+++ b/
include/net/ip.h
@@
-357,7
+357,7
@@
static inline bool sysctl_dev_name_is_allowed(const char *name)
static inline bool inet_port_requires_bind_service(struct net *net, unsigned short port)
{
- return port <
net->ipv4.sysctl_ip_prot_sock
;
+ return port <
READ_ONCE(net->ipv4.sysctl_ip_prot_sock)
;
}
#else