lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectminor 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);
\
 
 \ /
  Last update: 2005-03-22 13:42    [W:1.173 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site