On Wed, Jan 30, 2019 at 07:54:12AM -0600, Eric W. Biederman wrote:
> 
> 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: sta...@vger.kernel.org
> Cc: Chris Mason <c...@fb.com>
> Cc: Josef Bacik <jo...@toxicpanda.com>
> Cc: David Sterba <dste...@suse.com>
> Cc: linux-btrfs@vger.kernel.org
> Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>

Reviewed-by: David Sterba <dste...@suse.com>

Added to 5.0-rc queue, thanks.

Reply via email to