aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2019-01-30 13:54:12 +0000
committerDavid Sterba <[email protected]>2019-01-30 17:16:47 +0000
commit532b618bdf237250d6d4566536d4b6ce3d0a31fe (patch)
treef0dbc1ed55d132b859a62e0785cf4cd37261c64c /lib/xarray.c
parentbtrfs: clean up pending block groups when transaction commit aborts (diff)
downloadkernel-532b618bdf237250d6d4566536d4b6ce3d0a31fe.tar.gz
kernel-532b618bdf237250d6d4566536d4b6ce3d0a31fe.zip
btrfs: On error always free subvol_name in btrfs_mount
The subvol_name is allocated in btrfs_parse_subvol_options and is consumed and freed in mount_subvol. Add a free to the error paths that don't call mount_subvol so that it is guaranteed that subvol_name is freed when an error happens. Fixes: 312c89fbca06 ("btrfs: cleanup btrfs_mount() using btrfs_mount_root()") Cc: [email protected] # v4.19+ Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions