]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix unlock after free on rewinded tree blocks
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Sat, 13 Apr 2013 13:19:55 +0000 (13:19 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:48 +0000 (15:54 -0400)
commit365b4f044f1f2507b20471c0d9b1755c28447951
tree0214d77b462613aa605d3107633bec7445d53d57
parentb8b76c1dc42fa0d65b24a185d1ec519214d861d4
Btrfs: fix unlock after free on rewinded tree blocks

When tree_mod_log_rewind decides to make a copy of the current tree buffer
for its modifications, it subsequently freed the buffer before unlocking it.
Obviously, those operations are required in reverse order.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c