summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-11-05 02:37:22 +0000
committerDavid Sterba <dsterba@suse.com>2025-11-05 20:01:12 +0100
commitc367af440e03eba7beb0c9f3fe540f9bcb69134a (patch)
treed214864863166ec61c49e6ca7af6f145964d00fb /scripts
parent5fea61aa1ca70c4b3738eebad9ce2d7e7938ebbd (diff)
downloadkernel-c367af440e03eba7beb0c9f3fe540f9bcb69134a.tar.gz
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 'scripts')
0 files changed, 0 insertions, 0 deletions
net_operations to be executed in parallelKirill Tkhai 2018-01-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller 2018-01-25net: tcp: close sock if net namespace is exitingDan Streetman 2018-01-15net: Convert atomic_t net::count to refcount_tKirill Tkhai 2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman 2017-08-03net: core: Make the FIB notification chain genericIdo Schimmel 2017-07-19Merge tag 'gcc-plugins-v4.13-rc2' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2017-07-01net: convert net.passive from atomic_t to refcount_tReshetova, Elena 2017-06-30randstruct: Mark various structs for randomizationKees Cook 2017-06-19netns: add and use net_ns_barrierFlorian Westphal 2017-04-04can: initial support for network namespacesMario Kicherer