Merge tag 'pull-work.fd-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
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
This commit is contained in:
@@ -1886,6 +1886,8 @@ static void binder_deferred_fd_close(int fd)
|
||||
init_task_work(&twcb->twork, binder_do_fd_close);
|
||||
twcb->file = close_fd_get_file(fd);
|
||||
if (twcb->file) {
|
||||
// pin it until binder_do_fd_close(); see comments there
|
||||
get_file(twcb->file);
|
||||
filp_close(twcb->file, current->files);
|
||||
task_work_add(current, &twcb->twork, TWA_RESUME);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user