Merge "msm: kgsl: Check for gmu prealloc failure only in case of prealloc request"

This commit is contained in:
qctecmdr 2020-11-13 07:49:43 -08:00 committed by Gerrit - the friendly Code Review server
commit f16a067bfd

View File

@ -1538,11 +1538,12 @@ int a6xx_gmu_parse_fw(struct adreno_device *adreno_dev)
offset += sizeof(*blk); offset += sizeof(*blk);
if (blk->type == GMU_BLK_TYPE_PREALLOC_REQ || 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); ret = a6xx_gmu_process_prealloc(gmu, blk);
if (ret) if (ret)
return ret; return ret;
}
} }
return 0; return 0;