Skip to content
Commit f1136989 authored by Dan Carpenter's avatar Dan Carpenter Committed by David Sterba
Browse files

btrfs: fix error pointer check in __btrfs_map_block()



The btrfs_get_chunk_map() never returns NULL, it returns error pointers.

Fixes: 89b798ad ("btrfs: Use btrfs_get_io_geometry appropriately")
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3b80a984
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment