git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xfrm: fix a data-race in xfrm_lookup_with_ifid()
[sfrench/cifs-2.6.git]
/
net
/
xfrm
/
xfrm_policy.c
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index 99df2862bdc951cb2481315a0ec7470120a2dea8..d24b4d4f620ea02c900e99f0db9b08efef920663 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-3220,7
+3220,7
@@
no_transform:
}
for (i = 0; i < num_pols; i++)
-
pols[i]->curlft.use_time = ktime_get_real_seconds(
);
+
WRITE_ONCE(pols[i]->curlft.use_time, ktime_get_real_seconds()
);
if (num_xfrms < 0) {
/* Prohibit the flow */