mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
fs/ntfs3: out1 also needs to put mi
[ Upstream commit 4d78d1173a653acdaf7500a32b8dc530ca4ad075 ]
After ntfs_look_free_mft() executes successfully, all subsequent code
that fails to execute must put mi.
Fixes: 4342306f0f ("fs/ntfs3: Add file operations and implementation")
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
800153219f
commit
ba125e8f8d
@@ -1067,9 +1067,9 @@ insert_ext:
|
||||
|
||||
out2:
|
||||
ni_remove_mi(ni, mi);
|
||||
mi_put(mi);
|
||||
|
||||
out1:
|
||||
mi_put(mi);
|
||||
ntfs_mark_rec_free(sbi, rno, is_mft);
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user