diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index cfec5e0c7f66..a9610f5f4cc0 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -1563,6 +1563,13 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc) iput(inode); out: kfree(boot2); + + if (sbi->mft.bitmap.inited) + wnd_close(&sbi->mft.bitmap); + + if (sbi->used.bitmap.inited) + wnd_close(&sbi->used.bitmap); + return err; }