diff options
| author | 2025-11-05 02:37:22 +0000 | |
|---|---|---|
| committer | 2025-11-05 20:01:12 +0100 | |
| commit | c367af440e03eba7beb0c9f3fe540f9bcb69134a (patch) | |
| tree | d214864863166ec61c49e6ca7af6f145964d00fb /lib/livepatch/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | btrfs: scrub: put bio after errors in scrub_raid56_parity_stripe() (diff) | |
| download | wireguard-linux-c367af440e03eba7beb0c9f3fe540f9bcb69134a.tar.xz wireguard-linux-c367af440e03eba7beb0c9f3fe540f9bcb69134a.zip | |
btrfs: release root after error in data_reloc_print_warning_inode()
data_reloc_print_warning_inode() calls btrfs_get_fs_root() to obtain
local_root, but fails to release its reference when paths_from_inode()
returns an error. This causes a potential memory leak.
Add a missing btrfs_put_root() call in the error path to properly
decrease the reference count of local_root.
Fixes: b9a9a85059cde ("btrfs: output affected files when relocation fails")
CC: stable@vger.kernel.org # 6.6+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/livepatch/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
