]> 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)
commitd97f3b66f71ff159f123345a0b7ec68f3a942088
tree95b6dbbedc00d45624607ccf41895d64cbac241c
parentc52932785832024db9de95e660174fc2fb3c82fe
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: 0bf3e064f36ca ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
fs/io_uring.c