Commit 4b3d568d authored by Chao Yu's avatar Chao Yu Committed by Greg Kroah-Hartman
Browse files

f2fs: fix to add missing iput() in gc_data_segment()



[ Upstream commit a798ff17 ]

During gc_data_segment(), if inode state is abnormal, it missed to call
iput(), fix it.

Fixes: b73e5282 ("f2fs: reposition unlock_new_inode to prevent accessing invalid inode")
Fixes: 9056d648 ("f2fs: fix to do sanity check on inode type during garbage collection")
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 14cdd01c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment