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

Commit 38896aaa authored by Laura Abbott's avatar Laura Abbott
Browse files

cma: Make the default CMA region not reserved by default



Due to a bug in code logic, the default CMA region is
reserved when CONFIG_CMA_RESERVE_DEFAULT_AREA is NOT set
instead of when it is set. Fix this logic.

Change-Id: I476594c1e3745386741f2aba1b978a436b60c7a4
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 01f3b4c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
			 (unsigned long)sel_size / SZ_1M);

		if (dma_contiguous_reserve_area(sel_size, &base, limit, NULL,
		    CMA_RESERVE_AREA, false) == 0)
		    CMA_RESERVE_AREA ? 0 : 1, false) == 0)
			dma_contiguous_def_base = base;
	}
#ifdef CONFIG_OF