]> 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:37:42 +0000 (14:37 +0200)
commit67e4ca7ddc67ef949326b4dc404a9678bbe67d72
tree80cec157cc7e3cb7291cab65911352e8301b2c3d
parent99ddb9c58511f1b71e23d02a06082bf6d2dd2133
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