]> 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:33:42 +0000 (14:33 +0200)
commit9c8237021b53d52357c0de07a768582fafb2791d
treeeaa87b18e7d7f0eeeac66f43fa6bdb3953727c1b
parentcacce7faa7c475cea55e82cc3a27794561fac157
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