Fix races around the access to ->s_options
[safe/jmp/linux-2.6] / fs / reiserfs / super.c
index d444fe0..1215a4f 100644 (file)
@@ -1316,8 +1316,7 @@ static int reiserfs_remount(struct super_block *s, int *mount_flags, char *arg)
        }
 
 out_ok:
-       kfree(s->s_options);
-       s->s_options = new_opts;
+       replace_mount_options(s, new_opts);
        return 0;
 
 out_err: