diff options
| author | 2021-12-06 09:31:18 +0100 | |
|---|---|---|
| committer | 2021-12-06 09:31:18 +0100 | |
| commit | d598c3c46ea69ea974f0613a651cd4ef3be0c870 (patch) | |
| tree | 92c4b32aa13596484d81988f530d888586ff7c7a /fs/file.c | |
| parent | usb: core: Fix file path that does not exist (diff) | |
| parent | Linux 5.16-rc4 (diff) | |
| download | wireguard-linux-d598c3c46ea69ea974f0613a651cd4ef3be0c870.tar.xz wireguard-linux-d598c3c46ea69ea974f0613a651cd4ef3be0c870.zip | |
Merge 5.16-rc4 into usb-next
We need the USB fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/file.c')
| -rw-r--r-- | fs/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/file.c b/fs/file.c index 8627dacfc424..ad4a8bf3cf10 100644 --- a/fs/file.c +++ b/fs/file.c @@ -858,6 +858,10 @@ loop: file = NULL; else if (!get_file_rcu_many(file, refs)) goto loop; + else if (files_lookup_fd_raw(files, fd) != file) { + fput_many(file, refs); + goto loop; + } } rcu_read_unlock(); |
