aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2022-08-08 10:50:10 -0400
committerMike Snitzer <[email protected]>2022-08-09 19:20:23 -0400
commitb7f362d6413ebd0167ac5a9f09ad5dca5490ac1a (patch)
tree60fcf0216b21e3d3d08e9f66fcced5f08413e645 /lib/mpi/mpi-cmp.c
parentf876df9f12cda68e68995b33b36491d78fd3ecce (diff)
dm writecache: fix smatch warning about invalid return from writecache_map
There's a smatch warning "inconsistent returns '&wc->lock'" in dm-writecache. The reason for the warning is that writecache_map() doesn't drop the lock on the impossible path. Fix this warning by adding wc_unlock() after the BUG statement (so that it will be compiled-away anyway). Fixes: df699cc16ea5e ("dm writecache: report invalid return from writecache_map helpers") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions