Re: [PATCH] Btrfs: fix fspath error deallocation

From: David Sterba
Date: Tue May 10 2016 - 09:40:24 EST


On Tue, May 10, 2016 at 02:56:20PM +0200, Vincent Stehlé wrote:
> Make sure to deallocate fspath with vfree() in case of error in
> init_ipath().
>
> fspath is allocated with vmalloc() in init_data_container() since
> commit 425d17a290c0 ("Btrfs: use larger limit for translation of logical to
> inode").
>
> Signed-off-by: Vincent Stehlé <vincent.stehle@xxxxxxxxx>
> Cc: Chris Mason <clm@xxxxxx>
> Cc: Josef Bacik <jbacik@xxxxxx>
> Cc: David Sterba <dsterba@xxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>