We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1bb6b commit 94b3f02Copy full SHA for 94b3f02
kernel/kallsyms_selftest.c
@@ -264,7 +264,7 @@ static int test_kallsyms_basic_function(void)
264
char namebuf[KSYM_NAME_LEN];
265
struct test_stat *stat, *stat2;
266
267
- stat = kmalloc(sizeof(*stat) * 2, GFP_KERNEL);
+ stat = kmalloc_array(2, sizeof(*stat), GFP_KERNEL);
268
if (!stat)
269
return -ENOMEM;
270
stat2 = stat + 1;
0 commit comments