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

Commit 48f15562 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: BUG_ON only if address is not an error"

parents a8f47b22 42c31216
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3410,7 +3410,7 @@ static unsigned long _gpu_find_svm(struct kgsl_process_private *private,
	uint64_t addr = kgsl_mmu_find_svm_region(private->pagetable,
		(uint64_t) start, (uint64_t)end, (uint64_t) len, align);

	BUG_ON(addr > ULONG_MAX);
	BUG_ON(!IS_ERR_VALUE((unsigned long)addr) && (addr > ULONG_MAX));

	return (unsigned long) addr;
}