From bce6d124af6531f2d6ad6835546eaa471d0657a0 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Thu, 20 Dec 2018 21:28:36 -0500 Subject: Don't check for corrupt heap too early; Fix QSPI timing --- supervisor/shared/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'supervisor/shared/stack.c') diff --git a/supervisor/shared/stack.c b/supervisor/shared/stack.c index 71e239c0a..311fa31b2 100755 --- a/supervisor/shared/stack.c +++ b/supervisor/shared/stack.c @@ -56,7 +56,7 @@ void allocate_stack(void) { } inline bool stack_ok(void) { - return *stack_alloc->ptr == STACK_CANARY_VALUE; + return stack_alloc == NULL || *stack_alloc->ptr == STACK_CANARY_VALUE; } inline void assert_heap_ok(void) { -- cgit v1.2.3