X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffcntl.c;h=8e382a5d51bd6f757bd694344465de0711d4afb2;hb=88d5a7bb75b5e8f600e79b16abaf008c7fdfd27d;hp=2bdaef35da5479a406aa1eb658eba498c145c4c7;hpb=0f7fc9e4d03987fe29f6dd4aa67e4c56eb7ecb05;p=linux-2.6 diff --git a/fs/fcntl.c b/fs/fcntl.c index 2bdaef35da..8e382a5d51 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -77,10 +77,9 @@ repeat: start = files->next_fd; newfd = start; - if (start < fdt->max_fdset) { + if (start < fdt->max_fds) newfd = find_next_zero_bit(fdt->open_fds->fds_bits, - fdt->max_fdset, start); - } + fdt->max_fds, start); error = -EMFILE; if (newfd >= current->signal->rlim[RLIMIT_NOFILE].rlim_cur)