diff options
| author | Alan Kwong <akwong@codeaurora.org> | 2016-06-17 10:11:29 -0400 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-24 15:05:45 -0700 |
| commit | 99c05f926ee82537aa7405faec7605daedf56a68 (patch) | |
| tree | a83083025cd0808231b050a12f591b877ee883b2 /drivers/video/fbdev | |
| parent | 54588859dbe2840d4cd4657bbca6fa142f4d23a4 (diff) | |
msm: mdss: Add dereference check for xlog vbif dump
Bypass vbif dump for ununsed vbif by checking for
null pointer dereference of io base.
Change-Id: Ic7204921fc82d5aea31c58fcbb668b296794b1c1
CRs-Fixed: 1030443
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_debug_xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_debug_xlog.c b/drivers/video/fbdev/msm/mdss_debug_xlog.c index c696832a96e8..a34bce1200d8 100644 --- a/drivers/video/fbdev/msm/mdss_debug_xlog.c +++ b/drivers/video/fbdev/msm/mdss_debug_xlog.c @@ -349,7 +349,7 @@ static void mdss_dump_vbif_debug_bus(u32 bus_dump_flag, bus_size = mdata->nrt_vbif_dbg_bus_size; } - if (!dbg_bus || !bus_size) + if (!vbif_base || !dbg_bus || !bus_size) return; /* allocate memory for each test point */ |
