mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "msm: kgsl: use kvmalloc for ringbuffer submission"
This commit is contained in:
commit
b6845fdd76
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue