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

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

Merge "msm: kgsl: use kvmalloc for ringbuffer submission"

parents 1a00719a 93f6fdbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -996,7 +996,7 @@ int adreno_ringbuffer_submitcmd(struct adreno_device *adreno_dev,
	if (gpudev->ccu_invalidate)
		dwords += 4;

	link = kcalloc(dwords, sizeof(unsigned int), GFP_KERNEL);
	link = kvcalloc(dwords, sizeof(unsigned int), GFP_KERNEL);
	if (!link) {
		ret = -ENOMEM;
		goto done;
@@ -1129,7 +1129,7 @@ int adreno_ringbuffer_submitcmd(struct adreno_device *adreno_dev,
	trace_kgsl_issueibcmds(device, context->id, numibs, drawobj->timestamp,
			drawobj->flags, ret, drawctxt->type);

	kfree(link);
	kvfree(link);
	return ret;
}