Skip to content

Commit

Permalink
fix umm_malloc null ptr.
Browse files Browse the repository at this point in the history
(endless reboot) like:
```
Fatal exception (28):
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28):
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
Fatal exception (28):
epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000
```

```
0x402097e8: umm_info at umm_malloc/umm_malloc.c line 1000
```
  • Loading branch information
Links2004 committed Mar 8, 2016
1 parent d2d1ca2 commit f8f0001
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cores/esp8266/umm_malloc/umm_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,10 @@ void ICACHE_FLASH_ATTR *umm_info( void *ptr, int force ) {

unsigned short int blockNo = 0;

if (umm_heap == NULL) {
umm_init();
}

/* Protect the critical section... */
UMM_CRITICAL_ENTRY();

Expand Down

0 comments on commit f8f0001

Please sign in to comment.