diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-12-20 21:28:36 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-12-20 21:28:36 -0500 |
| commit | bce6d124af6531f2d6ad6835546eaa471d0657a0 (patch) | |
| tree | 69221255a6a30a03c3676c24bacac5763d36e3bc /supervisor/shared/stack.c | |
| parent | ca60a034c73aa85f3508c60bdcfcf0d9035c0027 (diff) | |
Don't check for corrupt heap too early; Fix QSPI timing
Diffstat (limited to 'supervisor/shared/stack.c')
| -rwxr-xr-x | supervisor/shared/stack.c | 2 |
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) { |
