VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Jiri Slaby <jslaby@suse.cz> 2010-03-05 13:42:42 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2010-03-06 11:26:29 -0800 commit: d554ed895dc8f293cc712c71f14b101ace82579a parent: 221e3ebf6d5f2625373573155924e39f196c5d3d
Commit Summary:
fs: use rlimit helpers
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/file.c b/fs/file.c
index 38039af67663..34bb7f71d994 100644
--- 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.
 	 */
-	if (nr >= current->signal->rlim[RLIMIT_NOFILE].rlim_cur)
+	if (nr >= rlimit(RLIMIT_NOFILE))
 		return -EMFILE;
 
 	/* Do we need to expand? */