From: Chris Mason Date: Tue, 7 Apr 2015 01:17:00 +0000 (-0700) Subject: Btrfs: fix use after free when close_ctree frees the orphan_rsv X-Git-Tag: omap-for-v4.1/fixes-rc1~43^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdfb080e1853660952db5e5332727e59427856df;p=pandora-kernel.git Btrfs: fix use after free when close_ctree frees the orphan_rsv Near the end of close_ctree, we're calling btrfs_free_block_rsv to free up the orphan rsv. The problem is this call updates the space_info, which has already been freed. This adds a new __ function that directly calls kfree instead of trying to update the space infos. Signed-off-by: Chris Mason --- Reading git-diff-tree failed