diff options
author | Omar Sandoval <osandov@fb.com> | 2022-03-09 17:31:33 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-16 17:03:06 +0200 |
commit | 2256e901f5bddc56e24089c96f27b77da932dfcc (patch) | |
tree | c2465ec67775d7955c2307aff4ea96bc473014fb /fs/btrfs/inode.c | |
parent | c16218714307849a949f83cbad00b1b4ec166bb6 (diff) |
btrfs: fix anon_dev leak in create_subvol()
When btrfs_qgroup_inherit(), btrfs_alloc_tree_block, or
btrfs_insert_root() fail in create_subvol(), we return without freeing
anon_dev. Reorganize the error handling in create_subvol() to fix this.
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions