33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
|
|
From 14faa8f3a28490367c41c32ccb714ca4e743775d Mon Sep 17 00:00:00 2001
|
||
|
|
From: jiangheng <jiangheng14@huawei.com>
|
||
|
|
Date: Mon, 30 Sep 2024 14:46:55 +0800
|
||
|
|
Subject: [PATCH] fix stack null when register interrupt
|
||
|
|
|
||
|
|
---
|
||
|
|
src/lstack/core/lstack_protocol_stack.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/src/lstack/core/lstack_protocol_stack.c b/src/lstack/core/lstack_protocol_stack.c
|
||
|
|
index e412c3b..553dff3 100644
|
||
|
|
--- a/src/lstack/core/lstack_protocol_stack.c
|
||
|
|
+++ b/src/lstack/core/lstack_protocol_stack.c
|
||
|
|
@@ -562,7 +562,6 @@ static void* gazelle_stack_thread(void *arg)
|
||
|
|
unsigned wakeup_tick = 0;
|
||
|
|
|
||
|
|
stack = stack_thread_init(arg);
|
||
|
|
- intr_register(stack->stack_idx, INTR_LOCAL_EVENT, stack_local_event_get);
|
||
|
|
free(arg);
|
||
|
|
if (stack == NULL) {
|
||
|
|
LSTACK_LOG(ERR, LSTACK, "stack_thread_init failed queue_id=%hu\n", queue_id);
|
||
|
|
@@ -577,6 +576,7 @@ static void* gazelle_stack_thread(void *arg)
|
||
|
|
return NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
+ intr_register(stack->stack_idx, INTR_LOCAL_EVENT, stack_local_event_get);
|
||
|
|
stack_set_state(stack, RUNNING);
|
||
|
|
|
||
|
|
while (stack_polling(wakeup_tick) == 0) {
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|