mirror of https://github.com/thesofproject/sof.git
pipeline: check pipeline init memory allocation.
Make sure we check the return value and complain if it fails. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
0e4ab04d28
commit
13469d5951
|
@ -1327,5 +1327,10 @@ int pipeline_init(void)
|
|||
sizeof(*pipe_data));
|
||||
spinlock_init(&pipe_data->lock);
|
||||
|
||||
if (!pipe_data) {
|
||||
trace_pipe_error("failed to init pipeline");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue