Btrfs: don't delete fs_roots until after we cleanup the transaction
authorJosef Bacik <jbacik@fusionio.com>
Thu, 6 Jun 2013 14:29:40 +0000 (10:29 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sat, 8 Jun 2013 19:07:53 +0000 (15:07 -0400)
commit7b5ff90ed081787ec0765ceb4fe5ccf5677493a6
treefd0bffca467dde8ac29405004e8bf81be0725f11
parentc5cb6a0573bef87e098ee3cd946115ebe60a910e
Btrfs: don't delete fs_roots until after we cleanup the transaction

We get a use after free if we had a transaction to cleanup since there could be
delayed inodes which refer to their respective fs_root.  Thanks

Reported-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c