btrfs: fix error pointer check in __btrfs_map_block()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 Aug 2019 14:07:39 +0000 (17:07 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:12 +0000 (14:59 +0200)
commitf11369897ed4f8609cdee00d3af47c18fe6bda29
tree2e8432db54f8581b6150eb1ec1930fac2eb82615
parent3b80a984d2283e6f1dc59571e5aadc36eadac939
btrfs: fix error pointer check in __btrfs_map_block()

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

Fixes: 89b798ad1b42 ("btrfs: Use btrfs_get_io_geometry appropriately")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c