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 <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-08-18 16:38:54 +02:00 committed by Carles Cufí
commit b8cd6fe626

View file

@ -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);
}