]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/select.c
mfd: Several MFD drivers should depend on GENERIC_HARDIRQS
[net-next-2.6.git] / fs / select.c
index fd38ce2e32e349ba3c418dbc454957dd0e3ad958..73715e90030f0c78059c98c6a4e0abf6b8a04ffa 100644 (file)
@@ -821,7 +821,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
        struct poll_list *walk = head;
        unsigned long todo = nfds;
 
-       if (nfds > current->signal->rlim[RLIMIT_NOFILE].rlim_cur)
+       if (nfds > rlimit(RLIMIT_NOFILE))
                return -EINVAL;
 
        len = min_t(unsigned int, nfds, N_STACK_PPS);