diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 47012c9bf505..ffb76a5bfd4f 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -439,6 +439,7 @@ static void init_once(void *foo) */ static noinline void put_ntfs(struct ntfs_sb_info *sbi) { + put_mount_options(sbi->options); kfree(sbi->new_rec); kvfree(ntfs_put_shared(sbi->upcase)); kfree(sbi->def_table); @@ -482,7 +483,6 @@ static void ntfs_put_super(struct super_block *sb) /* Mark rw ntfs as clear, if possible. */ ntfs_set_state(sbi, NTFS_DIRTY_CLEAR); - put_mount_options(sbi->options); put_ntfs(sbi); sb->s_fs_info = NULL;