summaryrefslogtreecommitdiff
path: root/scripts/basic/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-12-26 11:30:22 +0000
committerDavid Sterba <dsterba@suse.com>2026-01-09 17:41:45 +0100
commitbe1c2e8afe3ac4a4f15a13f6844619c2cf47b1d1 (patch)
tree2ee9d8e06cad863cd7221899d64a4cd354ddc365 /scripts/basic/git@git.tavy.me:linux.git
parent1e1f2055ad5a7a5d548789b334a4473a7665c418 (diff)
btrfs: tests: fix root tree leak in btrfs_test_qgroups()
If btrfs_insert_fs_root() fails, the tmp_root allocated by btrfs_alloc_dummy_root() is leaked because its initial reference count is not decremented. Fix this by calling btrfs_put_root() unconditionally after btrfs_insert_fs_root(). This ensures the local reference is always dropped. Also fix a copy-paste error in the error message where the subvolume root insertion failure was incorrectly logged as "fs root". Co-developed-by: Jianhao Xu <jianhao.xu@seu.edu.cn> Signed-off-by: Jianhao Xu <jianhao.xu@seu.edu.cn> 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/basic/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions