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

Commit 90f23618 authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Bail out on dma allocation failure



Bail out immediately on dma memory allocation failure
and free the maps.

Change-Id: I36f7fd298876ad927a15ea0cb83308b35a1044e5
Acked-by: default avatarHimateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 265f64ad
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -448,6 +448,8 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, uintptr_t va,
		map->apps = me;
		map->fl = 0;
		VERIFY(err, !dma_alloc_memory(&region_start, len));
		if (err)
			goto bail;
		map->phys = (uintptr_t)region_start;
		map->size = len;
	} else {