Merge branches 'core-ipi-for-linus', 'core-locking-for-linus', 'tracing-fixes-for...
[pandora-kernel.git] / arch / x86 / ia32 / ia32_aout.c
index f9f4724..9046e4a 100644 (file)
@@ -297,7 +297,7 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs)
         * 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 (ex.a_data + ex.a_bss > rlim)