]> www.infradead.org Git - users/hch/misc.git/commit
io_uring: fix invalid hybrid polling ctx leaks
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 13 Nov 2024 03:26:01 +0000 (03:26 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2024 14:38:04 +0000 (07:38 -0700)
commitb9d69371e8fa90fa3ab100f4fcb4815b13b3673a
treefdf701ddaf100750b097c955c3937fe16f99d15f
parenta43e236fb9aef4528f2bd24095d1f348030f5d9d
io_uring: fix invalid hybrid polling ctx leaks

It has already allocated the ctx by the point where it checks the hybrid
poll configuration, plain return leaks the memory.

Fixes: 01ee194d1aba1 ("io_uring: add support for hybrid IOPOLL")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/b57f2608088020501d352fcdeebdb949e281d65b.1731468230.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c