X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffcntl.c;h=8e382a5d51bd6f757bd694344465de0711d4afb2;hb=ffda9d302267dbb7fc9bc38f6e4c1b3d61a536a9;hp=2bdaef35da5479a406aa1eb658eba498c145c4c7;hpb=88032b322a38b37335c8cb2e3473a45c81d280eb;p=pandora-kernel.git diff --git a/fs/fcntl.c b/fs/fcntl.c index 2bdaef35da54..8e382a5d51bd 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)