diff options
Diffstat (limited to '')
-rw-r--r-- | fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -627,6 +627,7 @@ int __close_fd(struct files_struct *files, unsigned fd) fdt = files_fdtable(files); if (fd >= fdt->max_fds) goto out_unlock; + fd = array_index_nospec(fd, fdt->max_fds); file = fdt->fd[fd]; if (!file) goto out_unlock; |