linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ proc patch ] cmdline missing mmput
@ 2004-11-19 23:01 pmeda
  0 siblings, 0 replies; only message in thread
From: pmeda @ 2004-11-19 23:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm


Fix the mmput bug introduced while fixing cmdline race.

Signed-off-by: Prasanna Meda <pmeda@akamai.com>


--- a/fs/proc/base.c	Fri Nov 19 14:42:07 2004
+++ b/fs/proc/base.c	Fri Nov 19 14:45:19 2004
@@ -342,7 +342,7 @@
 	if (!mm)
 		goto out;
 	if (!mm->arg_end)
-		goto out;	/* Shh! No looking before we're done */
+		goto out_mm;	/* Shh! No looking before we're done */
 
  	len = mm->arg_end - mm->arg_start;
  
@@ -365,8 +365,8 @@
 			res = strnlen(buffer, res);
 		}
 	}
+out_mm:
 	mmput(mm);
-
 out:
 	return res;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-19 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 23:01 [ proc patch ] cmdline missing mmput pmeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).