]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: handle errors from btrfs_dec_ref() properly
authorJosef Bacik <josef@toxicpanda.com>
Tue, 7 May 2024 18:12:15 +0000 (14:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:32:05 +0000 (14:32 +0200)
commit2c4fe45351e544da4b8f10c74b277117a4fa7869
tree3a0b01f55d1d17992805fe38c929696733fffe35
parent7b02f69bfb19cbe9a1eecee48ad764f9faec5776
btrfs: handle errors from btrfs_dec_ref() properly

commit 5eb178f373b4f16f3b42d55ff88fc94dd95b93b1 upstream.

In walk_up_proc() we BUG_ON(ret) from btrfs_dec_ref().  This is
incorrect, we have proper error handling here, return the error.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Jianqi Ren <jianqi.ren.cn@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/extent-tree.c