26 lines
825 B
Diff
26 lines
825 B
Diff
From b135b54b3d973d8bd63193be377d8ef6b1bb0ea5 Mon Sep 17 00:00:00 2001
|
|
From: Huaxin Lu <luhuaxin1@huawei.com>
|
|
Date: Tue, 20 Feb 2024 12:49:42 +0800
|
|
Subject: [PATCH 23/26] Use warpper dim_vzalloc to avoid false warning
|
|
|
|
---
|
|
src/core/tasks/dim_core_measure_kernel.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/core/tasks/dim_core_measure_kernel.c b/src/core/tasks/dim_core_measure_kernel.c
|
|
index 077f30a..dbf0dfe 100644
|
|
--- a/src/core/tasks/dim_core_measure_kernel.c
|
|
+++ b/src/core/tasks/dim_core_measure_kernel.c
|
|
@@ -31,7 +31,7 @@ static int sort_jump_table(struct jump_entry *sjump,
|
|
unsigned int i;
|
|
unsigned long *buf = NULL;
|
|
|
|
- buf = vzalloc(sizeof(unsigned long) * jump_counts);
|
|
+ buf = dim_vzalloc(sizeof(unsigned long) * jump_counts);
|
|
if (buf == NULL)
|
|
return -ENOMEM;
|
|
|
|
--
|
|
2.33.0
|
|
|