msm: mdss: fix vbif debug bus dump in log
Invalid memory access during vbif debug bus dump in log leads to crash. This adds null check before accessing debug bus memory. Change-Id: I54b74ce1004c4246398f18cd1a262e29a0a20d20 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
ed2fedf0a5
commit
945d3d962c
1 changed files with 2 additions and 1 deletions
|
@ -396,7 +396,8 @@ static void mdss_dump_vbif_debug_bus(u32 bus_dump_flag,
|
|||
wmb();
|
||||
|
||||
__vbif_debug_bus(head, vbif_base, dump_addr, in_log);
|
||||
dump_addr += (head->block_cnt * head->test_pnt_cnt * 4);
|
||||
if (dump_addr)
|
||||
dump_addr += (head->block_cnt * head->test_pnt_cnt * 4);
|
||||
}
|
||||
|
||||
mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF);
|
||||
|
|
Loading…
Add table
Reference in a new issue