Btrfs: add NULL check for do_walk_down()
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 25 Mar 2010 12:37:12 +0000 (12:37 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:08 +0000 (21:19 -0400)
commit90d2c51dbb4db05c040bc7db264bb7ab35e35455
treed97b50f0a064366aecce9671b8e1791263999e59
parent2f3014fc2ab1e25c36531e19164c48182c168995
Btrfs: add NULL check for do_walk_down()

btrfs_find_create_tree_block() may return NULL, so we must check the returned
value, or we will access a NULL pointer.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c