From ecdf76d6488ecdcde4a5618ef12b1beb9d3cdd2d Mon Sep 17 00:00:00 2001 From: Ingrid Gallardo Date: Thu, 24 Sep 2015 10:36:47 -0700 Subject: 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: Ingrid Gallardo --- drivers/video/fbdev/msm/mdss_debug.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') diff --git a/drivers/video/fbdev/msm/mdss_debug.c b/drivers/video/fbdev/msm/mdss_debug.c index 2f6a71f8c847..1502663c86ea 100644 --- a/drivers/video/fbdev/msm/mdss_debug.c +++ b/drivers/video/fbdev/msm/mdss_debug.c @@ -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; -- cgit v1.2.3