]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/fcntl.c
async_tx: use of kzalloc/kfree requires the include of slab.h
[karo-tx-linux.git] / fs / fcntl.c
index 97e01dc0d95fc4fe8464d729ce94d32b888b567d..452d02f9075ea19861d6d6bd00de12afd19a65eb 100644 (file)
@@ -344,7 +344,7 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
        switch (cmd) {
        case F_DUPFD:
        case F_DUPFD_CLOEXEC:
-               if (arg >= current->signal->rlim[RLIMIT_NOFILE].rlim_cur)
+               if (arg >= rlimit(RLIMIT_NOFILE))
                        break;
                err = alloc_fd(arg, cmd == F_DUPFD_CLOEXEC ? O_CLOEXEC : 0);
                if (err >= 0) {