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

Commit debbc7bb authored by Dhaval Patel's avatar Dhaval Patel
Browse files

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: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent ec7db6c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -396,6 +396,7 @@ static void mdss_dump_vbif_debug_bus(u32 bus_dump_flag,
		wmb();

		__vbif_debug_bus(head, vbif_base, dump_addr, in_log);
		if (dump_addr)
			dump_addr += (head->block_cnt * head->test_pnt_cnt * 4);
	}