]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix fspath error deallocation
authorVincent Stehlé <vincent.stehle@intel.com>
Tue, 10 May 2016 12:56:20 +0000 (14:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 May 2016 14:22:26 +0000 (16:22 +0200)
commit3d5b05a4ecd3767fef00b35f17b03e76ebc0ca22
tree64c7fd30eb9aebbb75394b2bde36712f4b66facf
parent392bd4613b373003373e0175575c024f21dca4c6
Btrfs: fix fspath error deallocation

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 6b1b7fa5a5a3 ("Btrfs: use larger limit for translation of logical to
inode").

Signed-off-by: Vincent Stehlé <vincent.stehle@intel.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c