|
 2.3.4
 fs
 exec.c
diff -u --recursive --new-file v2.3.3/linux/fs/exec.c linux/fs/exec.c
--- v2.3.3/linux/fs/exec.c Thu Apr 29 22:10:12 1999
+++ linux/fs/exec.c Wed May 26 11:15:36 1999
@@ -415,12 +415,11 @@
* Failure ... restore the prior mm_struct.
*/
fail_restore:
- /* The pgd belongs to the parent ... don't free it! */
- mm->pgd = NULL;
current->mm = old_mm;
/* restore the ldt for this task */
copy_segments(nr, current, NULL);
- mmput(mm);
+ release_segments(mm);
+ kmem_cache_free(mm_cachep, mm);
fail_nomem:
return retval;
|