From: Tomi Valkeinen Date: Mon, 12 Nov 2012 14:52:11 +0000 (+0200) Subject: OMAPDSS: DPI: fix crash with dpi_verify_dsi_pll() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~2^2^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1de8e129f5e77e5eac6dc0a30df403404ddcd2b3;p=pandora-kernel.git 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 --- Reading git-diff-tree failed