diff options
| author | Ingrid Gallardo <ingridg@codeaurora.org> | 2015-09-24 10:36:47 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:46:03 -0700 |
| commit | ecdf76d6488ecdcde4a5618ef12b1beb9d3cdd2d (patch) | |
| tree | c29664cbb0b3e29cea998d79e7113feee712a5f4 /drivers/video/fbdev | |
| parent | be40fe4f6586bd00a0542ddedc76f3bafc58ad48 (diff) | |
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 <ingridg@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
