summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-11-05 02:37:22 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 10:37:48 +0100
commita5b44895dac98b8ed0fa7ba8c8d56beadbfa856f (patch)
treea6f785b17aedbd7536abd585e6fb20d936c3bb12 /include/net/aligned_data.h
parent3a92d1e28e61da821e79b1433b04f2e1bd1cce4e (diff)
btrfs: release root after error in data_reloc_print_warning_inode()
commit c367af440e03eba7beb0c9f3fe540f9bcb69134a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions