diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-02-11 22:49:42 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 23:07:55 +0300 |
commit | 444d3f0bfd436cf28348a0a20d0b8ad0cdbb8be3 (patch) | |
tree | c855e538d058619d5636261d99f3d176f74dda8f /drivers/md/dm-bio-prison-v2.h | |
parent | b259c1a60c379ad73d673d329892c7dc36313656 (diff) | |
download | linux-444d3f0bfd436cf28348a0a20d0b8ad0cdbb8be3.tar.xz |
dm vdo indexer-volume: fix missing mutex_lock in process_entry
Must mutex_lock after dm_bufio_read, before dm_bufio_read error
handling, otherwise process_entry error path will return without
volume->read_threads_mutex held. This fixes potential double
mutex_unlock.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-bio-prison-v2.h')
0 files changed, 0 insertions, 0 deletions