scst: Replace kmalloc with kmalloc_obj for non-scalar types

This is the result of running the Linux kernel Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci against the SCST tree.

This patch doesn't change any functionality.
This commit is contained in:
Gleb Chesnokov
2026-04-12 15:38:24 +03:00
parent 77c1efbc1e
commit 8a3b257c33
42 changed files with 170 additions and 201 deletions
+1 -1
View File
@@ -4119,7 +4119,7 @@ create:
for (j = 0; j < 2; j++) {
for (i = 0; i < count; i++) {
t = kmalloc(sizeof(*t), GFP_KERNEL);
t = kmalloc_obj(*t);
if (!t) {
res = -ENOMEM;
PRINT_ERROR("Failed to allocate thread (size %zd)",