From 61e56a95a3149bb475b9eeb075d7f616fdd7b95c Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Thu, 21 Jun 2018 14:53:21 -0700 Subject: [PATCH] dsp: asm: initialize variables before use Initialize flag variables before use in spinlocks. CRs-Fixed: 2257317 Change-Id: I8b5973c1dfe3c7266a71d4e8ef4d5884b685ae5d Signed-off-by: Vignesh Kulothungan --- dsp/q6asm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/q6asm.c b/dsp/q6asm.c index db95d3b509..faedfc1b5c 100644 --- a/dsp/q6asm.c +++ b/dsp/q6asm.c @@ -1638,7 +1638,7 @@ static int32_t q6asm_srvc_callback(struct apr_client_data *data, void *priv) uint32_t dir = 0; uint32_t i = IN; uint32_t *payload; - unsigned long dsp_flags; + unsigned long dsp_flags = 0; unsigned long flags = 0; struct asm_buffer_node *buf_node = NULL; struct list_head *ptr, *next; @@ -1855,7 +1855,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv) { int i = 0; struct audio_client *ac = (struct audio_client *)priv; - unsigned long dsp_flags; + unsigned long dsp_flags = 0; uint32_t *payload; uint32_t wakeup_flag = 1; int32_t ret = 0;