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

Commit 9794d53e 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: Clear the memstore while destroying the context"

parents 0c503804 5f26c608
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -554,6 +554,13 @@ kgsl_context_destroy(struct kref *kref)

	write_lock(&device->context_lock);
	if (context->id != KGSL_CONTEXT_INVALID) {

		/* Clear the timestamps in the memstore during destroy */
		kgsl_sharedmem_writel(device, &device->memstore,
			KGSL_MEMSTORE_OFFSET(context->id, soptimestamp), 0);
		kgsl_sharedmem_writel(device, &device->memstore,
			KGSL_MEMSTORE_OFFSET(context->id, eoptimestamp), 0);

		idr_remove(&device->context_idr, context->id);
		context->id = KGSL_CONTEXT_INVALID;
	}