mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-25 17:34:33 +00:00
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:
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user