Forráskód Böngészése

disp: msm: avoid miscalculation in dsi debug bus dump size

Fix dsi count calculation which is used in determining size of
the memory allocated for dsi debug bus dump of all dsi controllers.

Change-Id: I22462eff41ebafde787a6cf4c1751104846bc6a5
Signed-off-by: Prabhanjan Kandula <[email protected]>
Prabhanjan Kandula 4 éve
szülő
commit
5fbf873b7b
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      msm/sde_dbg.c

+ 2 - 1
msm/sde_dbg.c

@@ -925,7 +925,8 @@ static void _sde_dbg_dump_dsi_dbg_bus(struct sde_dbg_sde_debug_bus *bus, u32 ena
 	struct sde_dbg_dsi_ctrl_list_entry *ctl_entry;
 	struct list_head *list;
 	int list_size = 0;
-	bool in_mem, in_log, i, dsi_count = 0;
+	bool in_mem, in_log;
+	u32 i, dsi_count = 0;
 	u32 **dump_mem = NULL;
 	u32 *dump_addr = NULL;
 	struct sde_debug_bus_entry *entries;