summaryrefslogtreecommitdiff
path: root/lib/test_workqueue.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-08 14:41:27 +0200
committerMark Brown <broonie@kernel.org>2026-10-08 14:41:27 +0200
commit9f19c8a019d7c1fb720133ca86154be1ccff39b5 (patch)
treea7c9d53fd675abff61a63352822a3939171ad6aa /lib/test_workqueue.c
parent2597b3f0a0e46069ffd754112b2bd33406fb6eec (diff)
parentf52260f49b107fddbcf7c75f9cf2347a5031f0f7 (diff)
downloadlinux-next-9f19c8a019d7c1fb720133ca86154be1ccff39b5.tar.gz
linux-next-9f19c8a019d7c1fb720133ca86154be1ccff39b5.zip
Merge regmap/for-7.4 into regmap-next
Diffstat (limited to 'lib/test_workqueue.c')
-rw-r--r--lib/test_workqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_workqueue.c b/lib/test_workqueue.c
index 99e160bd5ad1..2bdfcbbcabb4 100644
--- a/lib/test_workqueue.c
+++ b/lib/test_workqueue.c
@@ -149,11 +149,11 @@ static int __init run_bench(int n_threads, const char *scope, const char *label)
if (ret)
return ret;
- ctxs = kcalloc(n_threads, sizeof(*ctxs), GFP_KERNEL);
+ ctxs = kzalloc_objs(*ctxs, n_threads);
if (!ctxs)
return -ENOMEM;
- tasks = kcalloc(n_threads, sizeof(*tasks), GFP_KERNEL);
+ tasks = kzalloc_objs(*tasks, n_threads);
if (!tasks) {
kfree(ctxs);
return -ENOMEM;