diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-11 11:31:11 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-07-24 12:55:44 -0600 |
| commit | b36200f543ff07a1cb346aa582349141df2c8068 (patch) | |
| tree | 412713127dde3057c7b037eae9bb72390ed6d17d /net/lapb/lapb_timer.c | |
| parent | 760618f7a8e3b63aa06266efb301719c374e29d4 (diff) | |
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: 75b28affdd6a ("io_uring: allocate the two rings together")
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Hristo Venev <hristo@venev.name>
Cc: io-uring@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
