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

Commit 728b043e 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: Do not allow a fence to be created on an invalid context"

parents 0b4e4b2b 52b472e6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -170,6 +170,13 @@ int kgsl_add_fence_event(struct kgsl_device *device,
	if (context == NULL)
		goto unlock;

	if (test_bit(KGSL_CONTEXT_PRIV_INVALID, &context->priv)) {
		KGSL_DRV_ERR(device,
			"Cannot create a fence: context %d is invalid\n",
			context->id);
		goto unlock;
	}

	pt = kgsl_sync_pt_create(context->timeline, context, timestamp);
	if (pt == NULL) {
		KGSL_DRV_ERR(device, "kgsl_sync_pt_create failed\n");