projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'perf-tools-fixes-for-v6.4-1-2023-05-20' of git://git.kernel.org/pub/scm...
[linux-block.git]
/
net
/
socket.c
diff --git
a/net/socket.c
b/net/socket.c
index a7b4b37d86df7a9232d582a14863c05b5fd34b68..b7e01d0fe0824d1f277c1fe70f68f09a10319832 100644
(file)
--- a/
net/socket.c
+++ b/
net/socket.c
@@
-2911,7
+2911,7
@@
static int do_recvmmsg(int fd, struct mmsghdr __user *mmsg,
* error to return on the next call or if the
* app asks about it using getsockopt(SO_ERROR).
*/
-
sock->sk->sk_err = -err
;
+
WRITE_ONCE(sock->sk->sk_err, -err)
;
}
out_put:
fput_light(sock->file, fput_needed);