patch-2.6.6-vs1.9.0
[linux-2.6.git] / fs / binfmt_elf.c
index a67e6f5..fee8d14 100644 (file)
@@ -695,7 +695,8 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
 
        /* Do this so that we can load the interpreter, if need be.  We will
           change some of these later */
-       current->mm->rss = 0;
+       // current->mm->rss = 0;
+       vx_rsspages_sub(current->mm, current->mm->rss);
        current->mm->free_area_cache = TASK_UNMAPPED_BASE;
        retval = setup_arg_pages(bprm, executable_stack);
        if (retval < 0) {