]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix double unlock for pbuf select
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 12 Jun 2022 13:31:38 +0000 (14:31 +0100)
committerPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 10:37:41 +0000 (11:37 +0100)
commit432668df5a84225cb834d5b1c40bc30e7dbf5eee
tree95b6dbbedc00d45624607ccf41895d64cbac241c
parentb1e4cc69e03632fa6bdfde7d03289d61408063b4
io_uring: fix double unlock for pbuf select

io_buffer_select(), which is the only caller of io_ring_buffer_select(),
fully handles locking, mutex unlock in io_ring_buffer_select() will lead
to double unlock.

Fixes: e790404d1245a ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
fs/io_uring.c