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

Commit bda766cd authored by Deepak Kumar's avatar Deepak Kumar
Browse files

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: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 8543fd31
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1566,12 +1566,13 @@ 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;
		}
	}

	return 0;
}