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

Commit 739fffd3 authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Fix memory leak for remote heap



Fix the condition that was causing the remote heap from
not being freed.

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

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