OMAPDSS: DPI: fix crash with dpi_verify_dsi_pll()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 12 Nov 2012 14:52:11 +0000 (16:52 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Nov 2012 10:27:01 +0000 (12:27 +0200)
commit1de8e129f5e77e5eac6dc0a30df403404ddcd2b3
tree1c50691285cd68796e06368d16e3dceb64163e92
parent7e12be71fbad99efba4324843890d3b557dfc05c
OMAPDSS: DPI: fix crash with dpi_verify_dsi_pll()

If the DSI support has not been compiled in or the SoC doesn't have DSI
hardware, dpi_get_dsidev() returns NULL. This NULL is passed to
dpi_verify_dsi_pll() causing a crash. The bug was added with commit
0e8276ef75f5c7811b038d1d23b2b42c16efc5ac (OMAPDSS: DPI: always use DSI
PLL if available).

Fix this by checking if dsidev is NULL before calling
dpi_verify_dsi_pll().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c