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

Commit 93678676 authored by Harsh Vardhan Dwivedi's avatar Harsh Vardhan Dwivedi
Browse files

msm: kgsl: Handle failure of find_process_private()



Handle the case of NULL return from find_process_private() upon
its failure by failing from get_process_private().

CRs-fixed: 542831
Change-Id: I8a365368ecf68f0d1aa01199aca76bc7ac49e154
Signed-off-by: default avatarHarsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
parent dc3f6933
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -863,6 +863,9 @@ kgsl_get_process_private(struct kgsl_device_private *cur_dev_priv)

	private = kgsl_find_process_private(cur_dev_priv);

	if (!private)
		return NULL;

	mutex_lock(&private->process_private_mutex);

	/*