Fix races around the access to ->s_options
[linux-2.6-block.git] / drivers / isdn / capi / capifs.c
index b129409925af59b86c448fafca9ed88266ddd6ff..8f9f3b5a3e8c7667f54ff3d2dff8d8f69061e213 100644 (file)
@@ -75,8 +75,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data)
                }
        }
 
-       kfree(s->s_options);
-       s->s_options = new_opt;
+       replace_mount_options(s, new_opt);
 
        config.setuid  = setuid;
        config.setgid  = setgid;