Commit 5ded9f3
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 0c04f0d commit 5ded9f3
1 file changed
+1
-1
lines changed| 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