-
由 Dmitry Vyukov 提交于
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: NDmitry Vyukov <dvyukov@google.com> Acked-by: NHristo Venev <hristo@venev.name> Cc: io-uring@vger.kernel.org Signed-off-by: NJens Axboe <axboe@kernel.dk>
b36200f5