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

Commit 5cc1d013 authored by Harsh Vardhan Dwivedi's avatar Harsh Vardhan Dwivedi
Browse files

msm: kgsl: Remove unnecessary profile close check



Remove an unnecessary profile close check in
adreno_profile_process_results(). The profile close
check was causing NULL pointer dereferencing in
other adreno profile functions. There should be
no danger of memory leak though since we clear the
buffer in adreno_profile_close() anyway.

CRs-fixed: 590766
Change-Id: I372ade0dc0ec0ed23dd743c6294d8bf0524f812f
Signed-off-by: default avatarHarsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
parent 94c52e4c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1058,9 +1058,6 @@ int adreno_profile_process_results(struct kgsl_device *device)
	 */
	transfer_results(device, shared_buf_tail);

	/* check for any cleanup */
	check_close_profile(profile);

	return 1;
}