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

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

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

parents e4d67e18 3d7bc844
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1073,7 +1073,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;
@@ -1206,7 +1206,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;
}