author: Davidlohr Bueso <dave@stgolabs.net> 2018-07-26 16:37:19 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2018-07-26 19:38:03 -0700
commit: f075faa300acc4f6301e348acde0a4580ed5f77c
parent: 15d36fecd0bdc7510b70a0e5ec6671140b3fce0c
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/ipc/sem.c b/ipc/sem.c
index 5af1943ad782..76e95e4f3aa2 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -2118,7 +2118,7 @@ static long do_semtimedop(int semid, struct sembuf __user *tsops,
}
do {
- queue.status = -EINTR;
+ WRITE_ONCE(queue.status, -EINTR);
queue.sleeper = current;
__set_current_state(TASK_INTERRUPTIBLE);