diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-02-28 16:59:11 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-03-04 07:17:15 -0700 |
commit | a387b96d2a9687201318826d23c770eb794c778e (patch) | |
tree | a4a3006b34203be5710eec1da3fbad732d07326c | |
parent | 6a53541829662c8f1357f522a1d6315179442bf7 (diff) |
io_uring/rsrc: free io_rsrc_node using kfree()
io_rsrc_node_alloc() calls io_cache_alloc(), which uses kmalloc() to
allocate the node. So it can be freed with kfree() instead of kvfree().
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250228235916.670437-2-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | io_uring/rsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index c8d7284f20b8..19e9de040a20 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -490,7 +490,7 @@ int io_files_update(struct io_kiocb *req, unsigned int issue_flags) static void io_free_node(struct io_ring_ctx *ctx, struct io_rsrc_node *node) { if (!io_alloc_cache_put(&ctx->node_cache, node)) - kvfree(node); + kfree(node); } void io_free_rsrc_node(struct io_ring_ctx *ctx, struct io_rsrc_node *node) |