Merge tag 'pull-work.fd-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Jun 2022 00:14:03 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Jun 2022 00:14:03 +0000 (17:14 -0700)
Pull file descriptor fix from Al Viro:
 "Fix for breakage in #work.fd this window"

* tag 'pull-work.fd-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  fix the breakage in close_fd_get_file() calling conventions change

1  2 
drivers/android/binder.c
fs/io_uring.c

Simple merge
diff --cc fs/io_uring.c
@@@ -6025,11 -5124,9 +6025,10 @@@ static int io_close(struct io_kiocb *re
                spin_unlock(&files->file_lock);
                goto err;
        }
 -      file = fdt->fd[close->fd];
 +      file = rcu_dereference_protected(fdt->fd[close->fd],
 +                      lockdep_is_held(&files->file_lock));
        if (!file || file->f_op == &io_uring_fops) {
                spin_unlock(&files->file_lock);
-               file = NULL;
                goto err;
        }