mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
msm: kgsl: Check for gmu prealloc failure only in case of prealloc request
Check for gmu prealloc failure only in case of prealloc request to avoid use of uninitialized ret variable. Change-Id: Ie0718f17fb9517e3e7659c277ff6f2fc3ef07f53 Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
This commit is contained in:
parent
8543fd31f2
commit
bda766cd68
1 changed files with 4 additions and 3 deletions
|
|
@ -1566,11 +1566,12 @@ int a6xx_gmu_parse_fw(struct adreno_device *adreno_dev)
|
|||
offset += sizeof(*blk);
|
||||
|
||||
if (blk->type == GMU_BLK_TYPE_PREALLOC_REQ ||
|
||||
blk->type == GMU_BLK_TYPE_PREALLOC_PERSIST_REQ)
|
||||
blk->type == GMU_BLK_TYPE_PREALLOC_PERSIST_REQ) {
|
||||
ret = a6xx_gmu_process_prealloc(gmu, blk);
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue