Ilya Dryomov bf023ecfca 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 <chris.mason@fusionio.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-02-20 12:59:53 -05:00
..
2012-12-17 14:48:21 -05:00
2012-05-29 23:28:33 -04:00
2013-02-20 12:59:09 -05:00
2012-10-09 09:14:45 -04:00
2012-10-09 09:14:45 -04:00
2013-02-20 12:59:48 -05:00
2013-02-20 09:37:17 -05:00
2013-02-20 09:36:43 -05:00
2011-06-17 14:54:18 -04:00
2012-10-01 15:18:53 -04:00
2012-10-01 15:18:53 -04:00
2012-10-09 09:19:57 -04:00