diff options
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/compat.c b/fs/compat.c index b766964a625c..0ec70e3cee0a 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -1679,19 +1679,19 @@ int compat_core_sys_select(int n, compat_ulong_t __user *inp, | |||
1679 | { | 1679 | { |
1680 | fd_set_bits fds; | 1680 | fd_set_bits fds; |
1681 | char *bits; | 1681 | char *bits; |
1682 | int size, max_fdset, ret = -EINVAL; | 1682 | int size, max_fds, ret = -EINVAL; |
1683 | struct fdtable *fdt; | 1683 | struct fdtable *fdt; |
1684 | 1684 | ||
1685 | if (n < 0) | 1685 | if (n < 0) |
1686 | goto out_nofds; | 1686 | goto out_nofds; |
1687 | 1687 | ||
1688 | /* max_fdset can increase, so grab it once to avoid race */ | 1688 | /* max_fds can increase, so grab it once to avoid race */ |
1689 | rcu_read_lock(); | 1689 | rcu_read_lock(); |
1690 | fdt = files_fdtable(current->files); | 1690 | fdt = files_fdtable(current->files); |
1691 | max_fdset = fdt->max_fdset; | 1691 | max_fds = fdt->max_fds; |
1692 | rcu_read_unlock(); | 1692 | rcu_read_unlock(); |
1693 | if (n > max_fdset) | 1693 | if (n > max_fds) |
1694 | n = max_fdset; | 1694 | n = max_fds; |
1695 | 1695 | ||
1696 | /* | 1696 | /* |
1697 | * We need 6 bitmaps (in/out/ex for both incoming and outgoing), | 1697 | * We need 6 bitmaps (in/out/ex for both incoming and outgoing), |