Message ID | 20130124234642.GA29022@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 17c306b..938b037 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -1269,7 +1269,7 @@ static int __update_reloc_root(struct btrfs_root *root, int del) } spin_unlock(&rc->reloc_root_tree.lock); - BUG_ON((struct btrfs_root *)node->data != root); + BUG_ON(!node || (struct btrfs_root *)node->data != root); if (!del) { spin_lock(&rc->reloc_root_tree.lock);