瀏覽代碼

Merge "dsp: Initialize variable before use"

Linux Build Service Account 7 年之前
父節點
當前提交
7b0ae02b27
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dsp/q6voice.c

+ 1 - 1
dsp/q6voice.c

@@ -7903,7 +7903,7 @@ static int voice_alloc_oob_shared_mem(void)
 	int cnt = 0;
 	int rc = 0;
 	size_t len;
-	void *mem_addr;
+	void *mem_addr = NULL;
 	dma_addr_t phys;
 	int bufsz = BUFFER_BLOCK_SIZE;
 	int bufcnt = NUM_OF_BUFFERS;