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:
Tomasz Lauda 2019-08-01 14:23:06 +02:00 committed by Liam Girdwood
parent f837e57b6e
commit ca45e75244
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ static struct ll_schedule_data *work_new_queue(struct timesource_data *ts)
struct ll_schedule_data *queue; struct ll_schedule_data *queue;
/* init work 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); list_init(&queue->tasks);
spinlock_init(&queue->lock); spinlock_init(&queue->lock);