Skip to content

Commit 5f9984f

Browse files
ChuanN-sudoRbb666
authored andcommitted
[utest][smp_call]:fix initialize current_mask in _wait_for_update
1 parent 22a77f2 commit 5f9984f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/drivers/smp_call/utest/smp_004_tc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2024/10/28 Shell Added smp.smoke
9+
* 2025/12/9 ChuanN-sudo fix: initialize current_mask variable
910
*/
1011

1112
#include <rtdevice.h>
@@ -90,7 +91,7 @@ static void _test_smp_call_isr(void *param)
9091

9192
static rt_ubase_t _wait_for_update(rt_ubase_t *maskp, rt_ubase_t exp, int cpuid, rt_thread_t curthr)
9293
{
93-
rt_ubase_t level, current_mask;
94+
rt_ubase_t level, current_mask = 0;
9495

9596
for (size_t i = cpuid; i < RT_CPUS_NR; i++)
9697
{

0 commit comments

Comments
 (0)