projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: use rlimit helpers
[firefly-linux-kernel-4.4.55.git]
/
fs
/
binfmt_flat.c
diff --git
a/fs/binfmt_flat.c
b/fs/binfmt_flat.c
index 42c6b4a54445620856c1e0ab7814bf7f763dba9c..e0e769bdca59918bc0cc2f6c202ccae7bdcd5546 100644
(file)
--- 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) {