Merge tag 'io_uring-5.15-2021-09-11' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / kernel / acct.c
index a64102b..23a7ab8 100644 (file)
@@ -478,7 +478,7 @@ static void do_acct_process(struct bsd_acct_struct *acct)
        /*
         * Accounting records are not subject to resource limits.
         */
-       flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur;
+       flim = rlimit(RLIMIT_FSIZE);
        current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
        /* Perform file operations on behalf of whoever enabled accounting */
        orig_cred = override_creds(file->f_cred);