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

Commit 4632425f authored by Raghu Ananya Arabolu's avatar Raghu Ananya Arabolu
Browse files

msm: kgsl: Fix uninitialized variables



NULL initialize cfg and seq variables. Uninitialized values of these
variables could result in not returning from a6xx_load_pdc_ucode function
when we fail to map either PDC CFG or PDC SEQ memory regions.

Fixes: 8b370ecd ("msm: kgsl: Do not program GPU PDC ucode and TCS commands")
Change-Id: Ie5d00da8261546e58ae07b2fc5ba1d7d483fb53f
Signed-off-by: default avatarRaghu Ananya Arabolu <rarabolu@codeaurora.org>
parent c4e39324
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ static int a6xx_load_pdc_ucode(struct kgsl_device *device)
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct resource *res_pdc, *res_cfg, *res_seq;
	unsigned int cfg_offset, seq_offset;
	void __iomem *cfg, *seq;
	void __iomem *cfg = NULL, *seq = NULL;
	const struct adreno_a6xx_core *a6xx_core = to_a6xx_core(adreno_dev);
	u32 vrm_resource_addr = cmd_db_read_addr("vrm.soc");