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:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 42c6b4a54445..e0e769bdca59 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -501,7 +501,7 @@ static int load_flat_file(struct linux_binprm * bprm,
* size limits imposed on them by creating programs with large
* arrays in the data or bss.
*/
- rlim = current->signal->rlim[RLIMIT_DATA].rlim_cur;
+ rlim = rlimit(RLIMIT_DATA);
if (rlim >= RLIM_INFINITY)
rlim = ~0;
if (data_len + bss_len > rlim) {