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

Commit f69d3db0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents e3f79712 8b11d969
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);

	/*