patch-2.1.77 linux/fs/exec.c

Next file: linux/fs/nfs/dir.c
Previous file: linux/drivers/sound/v_midi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.76/linux/fs/exec.c linux/fs/exec.c
@@ -518,7 +518,7 @@
 	 * Release all of the old mmap stuff
 	 */
 	retval = exec_mmap();
-	if (retval) goto flush_failed;
+	if (retval) goto mmap_failed;
 
 	/* This is the point of no return */
 	release_old_signals(oldsig);
@@ -546,6 +546,9 @@
 
 	return 0;
 
+mmap_failed:
+	if (current->sig != oldsig)
+		kfree(current->sig);
 flush_failed:
 	current->sig = oldsig;
 	return retval;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov