diff options
Diffstat (limited to 'fs/open.c')
| -rw-r--r-- | fs/open.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -864,8 +864,7 @@ int get_unused_fd(void) | |||
| 864 | 864 | ||
| 865 | repeat: | 865 | repeat: |
| 866 | fdt = files_fdtable(files); | 866 | fdt = files_fdtable(files); |
| 867 | fd = find_next_zero_bit(fdt->open_fds->fds_bits, | 867 | fd = find_next_zero_bit(fdt->open_fds->fds_bits, fdt->max_fds, |
| 868 | fdt->max_fdset, | ||
| 869 | files->next_fd); | 868 | files->next_fd); |
| 870 | 869 | ||
| 871 | /* | 870 | /* |
