Skip to content
Commit b36200f5 authored by Dmitry Vyukov's avatar Dmitry Vyukov Committed by Jens Axboe
Browse files

io_uring: fix sq array offset calculation



rings_size() sets sq_offset to the total size of the rings (the returned
value which is used for memory allocation). This is wrong: sq array should
be located within the rings, not after them. Set sq_offset to where it
should be.

Fixes: 75b28aff ("io_uring: allocate the two rings together")
Signed-off-by: default avatarDmitry Vyukov <dvyukov@google.com>
Acked-by: default avatarHristo Venev <hristo@venev.name>
Cc: io-uring@vger.kernel.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 760618f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment