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

Commit 20b328ad 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: Switch to default pagetables in case of NULL context"

parents 53b085ac bbcae528
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1021,8 +1021,10 @@ static int adreno_iommu_setstate(struct kgsl_device *device,
	num_iommu_units = kgsl_mmu_get_num_iommu_units(&device->mmu);

	context = kgsl_context_get(device, context_id);
	if (context == NULL)
	if (context == NULL) {
		kgsl_mmu_device_setstate(&device->mmu, KGSL_CONTEXT_INVALID);
		return -EINVAL;
	}

	adreno_ctx = ADRENO_CONTEXT(context);