diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-02-11 20:49:42 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 21:07:55 +0100 |
commit | 444d3f0bfd436cf28348a0a20d0b8ad0cdbb8be3 (patch) | |
tree | c855e538d058619d5636261d99f3d176f74dda8f /io_uring/advise.c | |
parent | dm vdo flush: initialize return to NULL in allocate_flush (diff) | |
download | linux-444d3f0bfd436cf28348a0a20d0b8ad0cdbb8be3.tar.xz linux-444d3f0bfd436cf28348a0a20d0b8ad0cdbb8be3.zip |
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 'io_uring/advise.c')
0 files changed, 0 insertions, 0 deletions