]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/binfmt_flat.c
fs: use rlimit helpers
[karo-tx-linux.git] / fs / binfmt_flat.c
index 42c6b4a54445620856c1e0ab7814bf7f763dba9c..e0e769bdca59918bc0cc2f6c202ccae7bdcd5546 100644 (file)
@@ -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) {