mem: panic if invalid zone is requested in malloc()

Seems to be a logic, non-recoverable error that should fail immediately.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
Marcin Maka 2019-02-21 11:04:09 +01:00
parent 9cddf9613d
commit c9d40c0175
1 changed files with 1 additions and 0 deletions

View File

@ -599,6 +599,7 @@ void *_malloc(int zone, uint32_t caps, size_t bytes)
break;
default:
trace_mem_error("rmalloc() error: invalid zone");
panic(SOF_IPC_PANIC_MEM); /* logic non recoverable problem */
break;
}