aboutsummaryrefslogtreecommitdiffstats
path: root/fs/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/select.c')
-rw-r--r--fs/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/select.c b/fs/select.c
index fd38ce2e32e3..73715e90030f 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -821,7 +821,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
821 struct poll_list *walk = head; 821 struct poll_list *walk = head;
822 unsigned long todo = nfds; 822 unsigned long todo = nfds;
823 823
824 if (nfds > current->signal->rlim[RLIMIT_NOFILE].rlim_cur) 824 if (nfds > rlimit(RLIMIT_NOFILE))
825 return -EINVAL; 825 return -EINVAL;
826 826
827 len = min_t(unsigned int, nfds, N_STACK_PPS); 827 len = min_t(unsigned int, nfds, N_STACK_PPS);