aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-06-27 08:13:23 +0200
committerDavid Sterba <[email protected]>2023-07-11 17:32:14 +0200
commit4e7de35eb7d1a1d4f2dda15f39fbedd4798a0b8d (patch)
tree90b5b60c7393edb761abaf278129b83373176252 /rust/helpers.c
parentb19c98f237cd76981aaded52c258ce93f7daa8cb (diff)
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: 03793cbbc80f ("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]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions