mirror of https://github.com/thesofproject/sof.git
ll_schedule: zero queue by default
Changes ll_schedule_data allocation function from malloc to rzalloc. It should be zeroed out in order to prevent usage of any garbage data after slave core reenable sequence. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
f837e57b6e
commit
ca45e75244
|
@ -509,7 +509,7 @@ static struct ll_schedule_data *work_new_queue(struct timesource_data *ts)
|
|||
struct ll_schedule_data *queue;
|
||||
|
||||
/* init work queue */
|
||||
queue = rmalloc(RZONE_SYS, SOF_MEM_CAPS_RAM, sizeof(*queue));
|
||||
queue = rzalloc(RZONE_SYS, SOF_MEM_CAPS_RAM, sizeof(*queue));
|
||||
list_init(&queue->tasks);
|
||||
|
||||
spinlock_init(&queue->lock);
|
||||
|
|
Loading…
Reference in New Issue