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

Commit 60951e70 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: Add check to protect against operating on NULL pointer"

parents f432ab9e f897dce9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,9 @@ kgsl_sharedmem_find_region(struct kgsl_process_private *private,
{
	struct rb_node *node;

	if (!private)
		return NULL;

	if (!kgsl_mmu_gpuaddr_in_range(private->pagetable, gpuaddr))
		return NULL;