summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-bufio.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2022-08-08 16:50:10 +0200
committerMike Snitzer <snitzer@kernel.org>2022-08-10 01:20:23 +0200
commitb7f362d6413ebd0167ac5a9f09ad5dca5490ac1a (patch)
tree60fcf0216b21e3d3d08e9f66fcced5f08413e645 /drivers/md/dm-bufio.c
parentdm verity: fix verity_parse_opt_args parsing (diff)
downloadlinux-b7f362d6413ebd0167ac5a9f09ad5dca5490ac1a.tar.xz
linux-b7f362d6413ebd0167ac5a9f09ad5dca5490ac1a.zip
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 <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-bufio.c')
0 files changed, 0 insertions, 0 deletions