From bbd7912a6b96b6121f313061d15d6b3ef6d66a33 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 9 Jan 2018 13:37:48 -0800 Subject: [PATCH] xtensa-asm2: Exception/interrupt handler should check stack sentinel This got forgotten. Note that this function is empty if CONFIG_STACK_SENTINEL is unconfigured. Signed-off-by: Andy Ross --- arch/xtensa/core/xtensa-asm2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/xtensa/core/xtensa-asm2.c b/arch/xtensa/core/xtensa-asm2.c index 1c258ada09a..f5bbdd841db 100644 --- a/arch/xtensa/core/xtensa-asm2.c +++ b/arch/xtensa/core/xtensa-asm2.c @@ -152,6 +152,8 @@ static inline void *restore_stack(void *interrupted_stack) irq_unlock(key); + _check_stack_sentinel(); + return ret; } #endif