aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-03-18 11:54:35 +0000
committerJens Axboe <[email protected]>2021-03-18 15:44:35 +0000
commitde75a3d3f5a14c9ab3c4883de3471d3c92a8ee78 (patch)
tree825ae49269672936357ee4e265b31db25d6ecf64 /lib/xarray.c
parentio_uring: use typesafe pointers in io_uring_task (diff)
downloadkernel-de75a3d3f5a14c9ab3c4883de3471d3c92a8ee78.tar.gz
kernel-de75a3d3f5a14c9ab3c4883de3471d3c92a8ee78.zip
io_uring: don't leak creds on SQO attach error
Attaching to already dead/dying SQPOLL task is disallowed in io_sq_offload_create(), but cleanup is hand coded by calling io_put_sq_data()/etc., that miss to put ctx->sq_creds. Defer everything to error-path io_sq_thread_finish(), adding ctx->sqd_list in the error case as well as finish will handle it. Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions