mirror of https://github.com/thesofproject/sof.git
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:
parent
9cddf9613d
commit
c9d40c0175
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue