Commit 6c2c10e
committed
drivers/mediatek/afe: Handle zero-length allocation
The older SOF allocator would return a valid pointer into the heap for
a zero length block, but Zephyr's sys_heap returns a NULL. That's not
an error and it will free() as a noop.
Signed-off-by: Andy Ross <andyross@google.com>1 parent 38c954e commit 6c2c10e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| |||
0 commit comments