diff options
| author | Jens Axboe <axboe@kernel.dk> | 2026-01-19 05:48:01 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-01-19 16:59:06 +0300 |
| commit | 4b9748055457ac3a0710bf210c229d01ea1b01b9 (patch) | |
| tree | 899350e47295b5daa4ef3ef5750105047ac1dbec /scripts/const_structs.checkpatch | |
| parent | da579f05ef0faada3559e7faddf761c75cdf85e1 (diff) | |
| download | linux-4b9748055457ac3a0710bf210c229d01ea1b01b9.tar.xz | |
io_uring/rw: free potentially allocated iovec on cache put failure
If a read/write request goes through io_req_rw_cleanup() and has an
allocated iovec attached and fails to put to the rw_cache, then it may
end up with an unaccounted iovec pointer. Have io_rw_recycle() return
whether it recycled the request or not, and use that to gauge whether to
free a potential iovec or not.
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
