aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJan Schmidt <[email protected]>2013-05-28 15:47:23 +0000
committerJosef Bacik <[email protected]>2013-06-14 11:30:08 -0400
commiteb1716af887375f1e2099f69bb89dfc5bd169bfa (patch)
tree634461e97227d6d75b3e05f47567bd1d1478beb2 /lib/mpi/mpiutil.c
parent4373519db4dbca05341a60b28f6e159b106e4c4b (diff)
Btrfs: avoid double free of fs_info->qgroup_ulist
When btrfs_read_qgroup_config or btrfs_quota_enable return non-zero, we've already freed the fs_info->qgroup_ulist. The final btrfs_free_qgroup_config called from quota_disable makes another ulist_free(fs_info->qgroup_ulist) call. We set fs_info->qgroup_ulist to NULL on the mentioned error paths, turning the ulist_free in btrfs_free_qgroup_config into a noop. Cc: Wang Shilong <[email protected]> Signed-off-by: Jan Schmidt <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions