From: Laurent Riffard <laurent.riffard@free.fr>

This patch fix a "use after kfree" bug in reiser4_parse_options.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/fs/reiser4/vfs_ops.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -puN fs/reiser4/vfs_ops.c~reiser4-fix-a-use-after-free-bug-in-reiser4_parse_options fs/reiser4/vfs_ops.c
--- 25/fs/reiser4/vfs_ops.c~reiser4-fix-a-use-after-free-bug-in-reiser4_parse_options	Mon Nov 22 14:39:30 2004
+++ 25-akpm/fs/reiser4/vfs_ops.c	Mon Nov 22 14:39:30 2004
@@ -1060,8 +1060,6 @@ do {						\
 	});
 #endif
 
-	kfree(opts);
-
 	sbinfo->tmgr.atom_max_size = txnmgr_get_max_atom_size(s);
 	sbinfo->tmgr.atom_max_age = REISER4_ATOM_MAX_AGE / HZ;
 	sbinfo->tmgr.atom_max_flushers = ATOM_MAX_FLUSHERS;
@@ -1089,6 +1087,9 @@ do {						\
 	sbinfo->ra_params.flags = 0;
 
 	result = parse_options(opt_string, opts, p - opts);
+
+	kfree(opts);
+
 	if (result != 0)
 		return result;
 
_