git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fat: convert to unlocked_ioctl
[pandora-kernel.git]
/
fs
/
file.c
diff --git
a/fs/file.c
b/fs/file.c
index
38039af
..
34bb7f7
100644
(file)
--- a/
fs/file.c
+++ b/
fs/file.c
@@
-257,7
+257,7
@@
int expand_files(struct files_struct *files, int nr)
* N.B. For clone tasks sharing a files structure, this test
* will limit the total number of files that can be opened.
*/
* N.B. For clone tasks sharing a files structure, this test
* will limit the total number of files that can be opened.
*/
- if (nr >=
current->signal->rlim[RLIMIT_NOFILE].rlim_cur
)
+ if (nr >=
rlimit(RLIMIT_NOFILE)
)
return -EMFILE;
/* Do we need to expand? */
return -EMFILE;
/* Do we need to expand? */