[ proc patch ] cmdline missing mmput

From: pmeda
Date: Fri Nov 19 2004 - 17:24:05 EST



Fix the mmput bug introduced while fixing cmdline race.

Signed-off-by: Prasanna Meda <pmeda@xxxxxxxxxx>


--- 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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/