瀏覽代碼

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 年之前
父節點
當前提交
5fbf873b7b
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;