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

Commit 171b7a49 authored by Sharat Masetty's avatar Sharat Masetty Committed by Jordan Crouse
Browse files

msm: kgsl: Fix conditional check for GMU_NONCACHED_USER



The conditional to initialize next_uncached_user_alloc is incorrect
and this patch simply fixes this.

Change-Id: I49c9aa5e2e84bf3c4855af6d166693683ce83c71
Signed-off-by: default avatarSharat Masetty <smasetty@codeaurora.org>
parent d4b3268d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -240,7 +240,7 @@ static struct gmu_memdesc *allocate_gmu_kmem(struct gmu_device *gmu,


	case GMU_NONCACHED_USER:
	case GMU_NONCACHED_USER:
		/* Set start address for first uncached user alloc */
		/* Set start address for first uncached user alloc */
		if (next_uncached_kernel_alloc == 0)
		if (next_uncached_user_alloc == 0)
			next_uncached_user_alloc = gmu->vma[mem_type].start;
			next_uncached_user_alloc = gmu->vma[mem_type].start;


		if (addr == 0)
		if (addr == 0)