]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: set qgroup_ulist to be null after calling ulist_free()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Sat, 13 Jul 2013 13:02:54 +0000 (21:02 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 11:57:36 +0000 (07:57 -0400)
commit712440132020f774d17a79cc523ecc561fb6d139
treea129f88c3ef5fe94a0ed42c7b2dc4b00d72df264
parentc8472e08a7e44e675b7f96413d3626d646d983a8
Btrfs: set qgroup_ulist to be null after calling ulist_free()

We call ulist_free(qgroup_ulist) in btrfs_free_qgroup_config(),
and btrfs_free_qgroup_config() may be called in two cases:

(1)umount filesystem
(2)disabling quota

However, if we firstly disable quota and then umount filesystem,
a double free happens. Fix it.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/qgroup.c