diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2019-01-30 07:54:12 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-01-30 18:16:47 +0100 |
commit | 532b618bdf237250d6d4566536d4b6ce3d0a31fe (patch) | |
tree | f0dbc1ed55d132b859a62e0785cf4cd37261c64c /kernel | |
parent | c7cc64a98512ffc41df86d14a414eb3b09bf7481 (diff) | |
download | linux-532b618bdf237250d6d4566536d4b6ce3d0a31fe.tar.bz2 |
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: stable@vger.kernel.org # v4.19+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions