]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix accessing a freed tree root
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:15 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:29 +0000 (21:40 -0400)
commitfb04b13660411150bd28bc9d8b491fefffceaeb5
tree17dd95d87abed2cab31d3c2cc316e85b314a4525
parent175e0c3716f42e936b6dc7d7743fcdd8941daa40
Btrfs: fix accessing a freed tree root

inode_tree_del() will move the tree root into the dead root list, and
then the tree will be destroyed by the cleaner. So if we remove the
delayed node which is cached in the inode after inode_tree_del(),
we may access a freed tree root. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c