summaryrefslogtreecommitdiff
path: root/fs/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/select.c')
-rw-r--r--fs/select.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/select.c b/fs/select.c
index 57b0af64cc1e..e0244dbe4429 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -993,8 +993,7 @@ static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
todo -= walk->len;
len = min(todo, POLLFD_PER_PAGE);
- walk = walk->next = kmalloc_flex(*walk, entries, len,
- GFP_KERNEL);
+ walk = walk->next = kmalloc_flex(*walk, entries, len);
if (!walk) {
err = -ENOMEM;
goto out_fds;