]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to release node block count in error path of f2fs_new_node_page()
authorChao Yu <chao@kernel.org>
Tue, 7 May 2024 03:31:00 +0000 (11:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:39 +0000 (13:39 +0200)
commit3109022d9fb42c8d8c97f8f43c99e1f9f3b31ec3
tree496b11b796224c847fd2f48c53e46ba71a31f5ed
parentb5bac43875aa27ec032dbbb86173baae6dce6182
f2fs: fix to release node block count in error path of f2fs_new_node_page()

[ Upstream commit 0fa4e57c1db263effd72d2149d4e21da0055c316 ]

It missed to call dec_valid_node_count() to release node block count
in error path, fix it.

Fixes: 141170b759e0 ("f2fs: fix to avoid use f2fs_bug_on() in f2fs_new_node_page()")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/node.c