summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>2013-03-25 12:08:23 +0100
committerJosef Bacik <jbacik@fusionio.com>2013-03-28 14:51:29 +0100
commita7975026ff9ddf91ba190ae2b71699dd156395e3 (patch)
tree6161c6ac3b7a0b2cbcc40b0126c69a261768b4ed /fs/btrfs/inode.c
parentBtrfs: limit the global reserve to 512mb (diff)
downloadlinux-a7975026ff9ddf91ba190ae2b71699dd156395e3.tar.xz
linux-a7975026ff9ddf91ba190ae2b71699dd156395e3.zip
Btrfs: fix double free in the btrfs_qgroup_account_ref()
The function btrfs_find_all_roots is responsible to allocate memory for 'roots' and free it if errors happen,so the caller should not free it again since the work has been done. Besides,'tmp' is allocated after the function btrfs_find_all_roots, so we can return directly if btrfs_find_all_roots() fails. Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions