From: Jan Schmidt Date: Tue, 28 May 2013 15:47:23 +0000 (+0000) Subject: Btrfs: avoid double free of fs_info->qgroup_ulist X-Git-Tag: v3.11-rc1~70^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1716af887375f1e2099f69bb89dfc5bd169bfa;p=pandora-kernel.git 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 Signed-off-by: Jan Schmidt Signed-off-by: Josef Bacik --- Reading git-diff-tree failed