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

Commit cd26160b authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

msm: mdss: debug: fix xlog crash during dump



Fix to initialize the nodes added by the panel
data dump to the xlog linked list.
This resolves a crash when runtime dumping
the registers through xlog with the dump
debugfs node:
echo 1 > /d/mdp/xlog/dump

Change-Id: I2a7222bd10e5d5a53b20472fbfbc3db818897515
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent b8105def
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -299,6 +299,9 @@ int panel_debug_register_base(const char *name, void __iomem *base,
		goto reg_fail;
	}

	/* Initialize list to make sure check for null list will be valid */
	INIT_LIST_HEAD(&dbg->dump_list);

	list_add(&dbg->head, &mdd->base_list);

	return 0;