Messages in this thread Patch in this message | | | Date | Thu, 21 May 1998 14:59:41 -0400 | From | Bill Hawes <> | Subject | minor patch for 2.1.102 fs/exec.c |
| |
Hi Linus,
The attached small patch fixes a problem spotted by DaveM, in that the mm->pgd field wasn't being cleared following a failure of new_page_tables().
Regards, Bill--- linux-2.1.102/fs/exec.c.old Sun May 17 12:19:36 1998 +++ linux-2.1.102/fs/exec.c Wed May 20 10:06:24 1998 @@ -428,6 +428,8 @@ * 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; mmput(mm); | |