From b8cd6fe626bbea11fb5cafacc137d67b1e245aca Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Sun, 18 Aug 2019 16:38:54 +0200 Subject: [PATCH] arch: arm: fault: fix check on recoverable fault flag 'recoverable' is a value passed by reference and we should be dereferencing the pointer, to check if the fault has been classified as recoverable. Signed-off-by: Ioannis Glaropoulos --- arch/arm/core/cortex_m/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/core/cortex_m/fault.c b/arch/arm/core/cortex_m/fault.c index c60b39ef0af..dc1f573de1b 100644 --- a/arch/arm/core/cortex_m/fault.c +++ b/arch/arm/core/cortex_m/fault.c @@ -692,7 +692,7 @@ static u32_t FaultHandle(z_arch_esf_t *esf, int fault, bool *recoverable) break; } - if (!recoverable) { + if ((*recoverable) == false) { /* Dump generic information about the fault. */ FaultShow(esf, fault); }