kernel: fatal: unlock IRQs in early return points in z_fatal_error
We need to unlock IRQs in early return points of z_fatal_error() functions; not only at the normal return point. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
23c5003d12
commit
3a3364eef8
1 changed files with 2 additions and 0 deletions
|
@ -156,9 +156,11 @@ void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf)
|
||||||
/* Abort the thread only on STACK Sentinel check fail. */
|
/* Abort the thread only on STACK Sentinel check fail. */
|
||||||
#if defined(CONFIG_STACK_SENTINEL)
|
#if defined(CONFIG_STACK_SENTINEL)
|
||||||
if (reason != K_ERR_STACK_CHK_FAIL) {
|
if (reason != K_ERR_STACK_CHK_FAIL) {
|
||||||
|
arch_irq_unlock(key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
arch_irq_unlock(key);
|
||||||
return;
|
return;
|
||||||
#endif /* CONFIG_STACK_SENTINEL */
|
#endif /* CONFIG_STACK_SENTINEL */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue