Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8288
b: refs/heads/master
c: a4531ed
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Sep 9, 2005
1 parent f868759 commit d057983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d8674edb534a3c5cb549bfde5a39fa5598cb3bc
refs/heads/master: a4531edd75522804dd2b268d8ccc5eaa70748011
4 changes: 3 additions & 1 deletion trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,7 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp
char *bits;
long timeout;
int size, max_fdset, ret = -EINVAL;
struct fdtable *fdt;

timeout = MAX_SCHEDULE_TIMEOUT;
if (tvp) {
Expand All @@ -1644,7 +1645,8 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp
goto out_nofds;

/* max_fdset can increase, so grab it once to avoid race */
max_fdset = current->files->max_fdset;
fdt = files_fdtable(current->files);
max_fdset = fdt->max_fdset;
if (n > max_fdset)
n = max_fdset;

Expand Down

0 comments on commit d057983

Please sign in to comment.