|
@@ -819,10 +819,10 @@ static int exec_mmap(struct mm_struct *mm)
|
|
/* Notify parent that we're no longer interested in the old VM */
|
|
/* Notify parent that we're no longer interested in the old VM */
|
|
tsk = current;
|
|
tsk = current;
|
|
old_mm = current->mm;
|
|
old_mm = current->mm;
|
|
- sync_mm_rss(old_mm);
|
|
|
|
mm_release(tsk, old_mm);
|
|
mm_release(tsk, old_mm);
|
|
|
|
|
|
if (old_mm) {
|
|
if (old_mm) {
|
|
|
|
+ sync_mm_rss(old_mm);
|
|
/*
|
|
/*
|
|
* Make sure that if there is a core dump in progress
|
|
* Make sure that if there is a core dump in progress
|
|
* for the old mm, we get out and die instead of going
|
|
* for the old mm, we get out and die instead of going
|