diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2013-02-12 17:27:46 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 18:59:53 +0100 |
commit | bf023ecfcaf114c410759f375073e78b0871c120 (patch) | |
tree | 71498b3d5181414892aaa2a0f632142724968d72 /fs/btrfs/free-space-cache.c | |
parent | Btrfs: remove unused extent io tree ops V2 (diff) | |
download | linux-bf023ecfcaf114c410759f375073e78b0871c120.tar.xz linux-bf023ecfcaf114c410759f375073e78b0871c120.zip |
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>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions