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

Commit 8b11d969 authored by Prakruthi Deepak Heragu's avatar Prakruthi Deepak Heragu
Browse files

msm: kgsl: Add check not to decrement refcount when debug_fs is disabled



As there is no increment in ref_count on context when debug_fs is
disabled, ensure there is no decrement in ref_count either.

Change-Id: I8da258a78a8b82ee967b1c944209f6777439e682
Signed-off-by: default avatarPrakruthi Deepak Heragu <pheragu@codeaurora.org>
parent 114be259
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1299,7 +1299,9 @@ void adreno_context_debugfs_init(struct adreno_device *adreno_dev,
static inline void adreno_debugfs_init(struct adreno_device *adreno_dev) { }
static inline void adreno_context_debugfs_init(struct adreno_device *device,
						struct adreno_context *context)
						{ }
{
	context->debug_root = NULL;
}
#endif

/**
+2 −1
Original line number Diff line number Diff line
@@ -464,6 +464,7 @@ void adreno_drawctxt_detach(struct kgsl_context *context)

	debugfs_remove_recursive(drawctxt->debug_root);
	/* The debugfs file has a reference, release it */
	if (drawctxt->debug_root)
		kgsl_context_put(context);

	/*