summaryrefslogtreecommitdiffstats
path: root/io_uring
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-09-05 20:45:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-09-05 20:45:18 -0700
commit1fc5a74b108fc90951890ec513ac81869f5eaff1 (patch)
treeddd247abac0e8e148e4ded357db093bee4fe35ed /io_uring
parent9f0346dcbea363787186c94ef94dd01aaa215afa (diff)
parent3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d (diff)
downloadlinux-stable-1fc5a74b108fc90951890ec513ac81869f5eaff1.tar.gz
linux-stable-1fc5a74b108fc90951890ec513ac81869f5eaff1.zip
Merge tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull kmalloc_obj conversions from Kees Cook: "Another run of the Coccinelle script for converting kmalloc() family of allocations to kmalloc_obj() via the existing rules in scripts/coccinelle/api/kmalloc_objs.cocci" * tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: treewide: refresh kmalloc_obj() conversions drm/amd/display: Fix harmless type mismatch in allocation
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/napi.c2
-rw-r--r--io_uring/zcrx.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/io_uring/napi.c b/io_uring/napi.c
index bfc771445..ca1c814fa 100644
--- a/io_uring/napi.c
+++ b/io_uring/napi.c
@@ -58,7 +58,7 @@ int __io_napi_add_id(struct io_ring_ctx *ctx, unsigned int napi_id,
}
}
- e = kmalloc(sizeof(*e), GFP_NOWAIT);
+ e = kmalloc_obj(*e, GFP_NOWAIT);
if (!e)
return -ENOMEM;
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 1b3b11405..86d580d44 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -483,8 +483,8 @@ static int io_zcrx_append_area(struct io_zcrx_ifq *ifq,
old_areas = ifq->areas;
old_nr = ifq->nr_areas;
- areas = kmalloc_array(old_nr + 1, sizeof(areas[0]),
- GFP_KERNEL_ACCOUNT | __GFP_ZERO);
+ areas = kmalloc_objs(areas[0], old_nr + 1,
+ GFP_KERNEL_ACCOUNT | __GFP_ZERO);
if (!areas)
return -ENOMEM;
if (old_areas)