Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8296
b: refs/heads/master
c: ac5b8b6
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Sep 9, 2005
1 parent b4d0a87 commit dbf5fea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0eca9626c6becb6fc56106b2e4287c6c784af3d
refs/heads/master: ac5b8b6f22118620cd1133d9943b1f31dc40a913
2 changes: 2 additions & 0 deletions trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,8 +1645,10 @@ 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 */
rcu_read_lock();
fdt = files_fdtable(current->files);
max_fdset = fdt->max_fdset;
rcu_read_unlock();
if (n > max_fdset)
n = max_fdset;

Expand Down

0 comments on commit dbf5fea

Please sign in to comment.