From: Ilya Dryomov Date: Tue, 12 Feb 2013 16:27:46 +0000 (+0000) Subject: Btrfs: eliminate a use-after-free in btrfs_balance() X-Git-Tag: v3.9-rc1~17^2~29^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf023ecfcaf114c410759f375073e78b0871c120;p=pandora-kernel.git Btrfs: eliminate a use-after-free in btrfs_balance() Commit 5af3e8cc introduced a use-after-free at volumes.c:3139: bctl is freed above in __cancel_balance() in all cases except for balance pause. Fix this by moving the offending check a couple statements above, the meaning of the check is preserved. Reported-by: Chris Mason Signed-off-by: Ilya Dryomov Signed-off-by: Josef Bacik --- Reading git-diff-tree failed