Skip to content

Commit 1ba7414

Browse files
Andy Rossnashif
authored andcommitted
kernel/sched: Correct coherence assert
Some legacy spots in our IPC layer (legally) pass a NULL wait queue to pend(). Allow this in the coherence assertion. Signed-off-by: Andy Ross <[email protected]>
1 parent 4dc6a0b commit 1ba7414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ static void pend(struct k_thread *thread, _wait_q_t *wait_q,
674674
k_timeout_t timeout)
675675
{
676676
#ifdef CONFIG_KERNEL_COHERENCE
677-
__ASSERT_NO_MSG(arch_mem_coherent(wait_q));
677+
__ASSERT_NO_MSG(wait_q == NULL || arch_mem_coherent(wait_q));
678678
#endif
679679

680680
LOCKED(&sched_spinlock) {

0 commit comments

Comments
 (0)