aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index d8f282b5baa9..cd040bf3fd87 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1954,7 +1954,7 @@ static int btrfs_relocate_chunk(struct btrfs_root *root,
1954 em = lookup_extent_mapping(em_tree, chunk_offset, 1); 1954 em = lookup_extent_mapping(em_tree, chunk_offset, 1);
1955 read_unlock(&em_tree->lock); 1955 read_unlock(&em_tree->lock);
1956 1956
1957 BUG_ON(em->start > chunk_offset || 1957 BUG_ON(!em || em->start > chunk_offset ||
1958 em->start + em->len < chunk_offset); 1958 em->start + em->len < chunk_offset);
1959 map = (struct map_lookup *)em->bdev; 1959 map = (struct map_lookup *)em->bdev;
1960 1960