Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc28ccc1 authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Validate ADSP remote heap memory



Check for proper condition for remote heap not being initialized
before freeing the memory.

Change-Id: Icfba23fca02226724a7f171d7850a5fc7cef99d8
Acked-by: default avatarBharath Kumar <bkumar@qti.qualcomm.com>
Acked-by: default avatarVishnu Karthik <vikarthi@qti.qualcomm.com>
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 122fe9b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ static void fastrpc_mmap_free(struct fastrpc_mmap *map)
	if (map->flags == ADSP_MMAP_HEAP_ADDR) {
		DEFINE_DMA_ATTRS(attrs);

		if (me->adsp_mem_device != NULL) {
		if (me->adsp_mem_device == NULL) {
			pr_err("failed to free remote heap allocation\n");
			return;
		}