projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] fs: fix __block_write_full_page error case buffer submission
[powerpc.git]
/
fs
/
compat.c
diff --git
a/fs/compat.c
b/fs/compat.c
index
b766964
..
0ec70e3
100644
(file)
--- a/
fs/compat.c
+++ b/
fs/compat.c
@@
-1679,19
+1679,19
@@
int compat_core_sys_select(int n, compat_ulong_t __user *inp,
{
fd_set_bits fds;
char *bits;
{
fd_set_bits fds;
char *bits;
- int size, max_fds
et
, ret = -EINVAL;
+ int size, max_fds, ret = -EINVAL;
struct fdtable *fdt;
if (n < 0)
goto out_nofds;
struct fdtable *fdt;
if (n < 0)
goto out_nofds;
- /* max_fds
et
can increase, so grab it once to avoid race */
+ /* max_fds can increase, so grab it once to avoid race */
rcu_read_lock();
fdt = files_fdtable(current->files);
rcu_read_lock();
fdt = files_fdtable(current->files);
- max_fds
et = fdt->max_fdset
;
+ max_fds
= fdt->max_fds
;
rcu_read_unlock();
rcu_read_unlock();
- if (n > max_fds
et
)
- n = max_fds
et
;
+ if (n > max_fds)
+ n = max_fds;
/*
* We need 6 bitmaps (in/out/ex for both incoming and outgoing),
/*
* We need 6 bitmaps (in/out/ex for both incoming and outgoing),