minor patch for 2.1.102 fs/exec.c

Bill Hawes (whawes@star.net)
Thu, 21 May 1998 14:59:41 -0400


This is a multi-part message in MIME format.
--------------A0DB9B732E818C041C78547D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
--------------A0DB9B732E818C041C78547D
Content-Type: text/plain; charset=us-ascii; name="exec_102-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="exec_102-patch"

--- 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);

--------------A0DB9B732E818C041C78547D--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu