diff options
| author | Chuan <[email protected]> | 2025-12-09 21:23:44 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-10 17:05:10 +0800 |
| commit | 5f9984fa5ea904ac9ee113d0cf6247b0fe8f614a (patch) | |
| tree | cb463734850816d7088a0917338b30cf023f297a | |
| parent | 22a77f2694dae2a675e27c7bf482960c86ba303e (diff) | |
[utest][smp_call]:fix initialize current_mask in _wait_for_update
| -rw-r--r-- | components/drivers/smp_call/utest/smp_004_tc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/smp_call/utest/smp_004_tc.c b/components/drivers/smp_call/utest/smp_004_tc.c index 32323f2134..139ffd92bd 100644 --- a/components/drivers/smp_call/utest/smp_004_tc.c +++ b/components/drivers/smp_call/utest/smp_004_tc.c @@ -6,6 +6,7 @@ * Change Logs: * Date Author Notes * 2024/10/28 Shell Added smp.smoke + * 2025/12/9 ChuanN-sudo fix: initialize current_mask variable */ #include <rtdevice.h> @@ -90,7 +91,7 @@ static void _test_smp_call_isr(void *param) static rt_ubase_t _wait_for_update(rt_ubase_t *maskp, rt_ubase_t exp, int cpuid, rt_thread_t curthr) { - rt_ubase_t level, current_mask; + rt_ubase_t level, current_mask = 0; for (size_t i = cpuid; i < RT_CPUS_NR; i++) { |
