mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
sched/wqueue: fix potential deadlock
sched_unlock() should called after spin_unlock Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
@@ -404,8 +404,8 @@ void work_notifier_signal(enum work_evtype_e evtype,
|
||||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
spin_unlock_irqrestore(&g_notifier_lock, flags);
|
||||
sched_unlock();
|
||||
}
|
||||
|
||||
#endif /* CONFIG_WQUEUE_NOTIFIER */
|
||||
|
||||
Reference in New Issue
Block a user