Преглед на файлове

dsp: Fix rtac memory unmap issue in ASM driver

During unmap of rtac block in ASM, mem_map_handle
address is set to zero instead of the value. Set the
map handle value to zero to avoid issue in freeing the
ion memory.

CRs-Fixed: 2254339
Change-Id: I6584be029d4c8dde235e722149c758df0db9916e
Signed-off-by: Aditya Bavanari <[email protected]>
Aditya Bavanari преди 6 години
родител
ревизия
d66cc71409
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dsp/q6asm.c

+ 1 - 1
dsp/q6asm.c

@@ -952,7 +952,7 @@ int q6asm_unmap_rtac_block(uint32_t *mem_map_handle)
 			__func__, result2);
 		result = result2;
 	} else {
-		mem_map_handle = 0;
+		*mem_map_handle = 0;
 	}
 
 	result2 = q6asm_mmap_apr_dereg();