]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
do_pollfd(): convert to CLASS(fd)
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Jun 2024 20:03:33 +0000 (16:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Nov 2024 06:28:07 +0000 (01:28 -0500)
commit89359897983825dbfc08578e7ee807aaf24d9911
tree8718ab16293168f57518c9d86dd73cc42c4c0ac8
parentd000e073ca2a08ab70accc28e93dee8d70e89d2f
do_pollfd(): convert to CLASS(fd)

lift setting ->revents into the caller, so that failure exits (including
the early one) would be plain returns.

We need the scope of our struct fd to end before the store to ->revents,
since that's shared with the failure exits prior to the point where we
can do fdget().

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/select.c