Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: be a bit more careful when setting mirror_num_ret in btrfs_map…
…_block The mirror_num_ret is allowed to be NULL, although it has to be set when smap is set. Unfortunately that is not a well enough specifiable invariant for static type checkers, so add a NULL check to make sure they are fine. Fixes: 03793cb ("btrfs: add fast path for single device io in __btrfs_map_block") Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
- Loading branch information