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

This commit is contained in:
qctecmdr 2022-05-29 23:00:25 -07:00 • committed by Gerrit - the friendly Code Review server
commit b6845fdd76

View file

@ -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 @@ done:
trace_kgsl_issueibcmds(device, context->id, numibs, drawobj->timestamp,
drawobj->flags, ret, drawctxt->type);
kfree(link);
kvfree(link);
return ret;
}