summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-12-20 21:28:36 -0500
committerDan Halbert <halbert@halwitz.org>2018-12-20 21:28:36 -0500
commitbce6d124af6531f2d6ad6835546eaa471d0657a0 (patch)
tree69221255a6a30a03c3676c24bacac5763d36e3bc /supervisor
parentca60a034c73aa85f3508c60bdcfcf0d9035c0027 (diff)
Don't check for corrupt heap too early; Fix QSPI timing
Diffstat (limited to 'supervisor')
-rwxr-xr-xsupervisor/shared/stack.c2
1 files changed, 1 insertions, 1 deletions
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) {