Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.4 /fs/exec.c

Filename:/fs/exec.c
Lines Added:2
Lines Deleted:3
Also changed in: (Previous) 2.2.4-ac1  2.2.3-ac4  2.2.3-ac1  2.2.3-ac2  2.2.3-ac3  2.2.2-ac1 
(Following) 2.3.5  2.3.9  2.3.10  2.3.11  2.3.12  2.3.13 

Location
[  2.3.4
  [  fs
     o  exec.c

Patch

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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.