drm/msm/dsi: check for failure on retrieving pll in dsi manager
authorLloyd Atkinson <latkinso@codeaurora.org>
Tue, 16 Jan 2018 21:26:01 +0000 (16:26 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:20 +0000 (10:41 -0500)
commitf0efc831d9439589efaf6406695470eca93ba08d
treec08b08600d233fc1e5607900b874e2e2c7f2e9d0
parent933519a5a269d8460450545adefcb5caec622cac
drm/msm/dsi: check for failure on retrieving pll in dsi manager

Make msm_dsi_pll_init consistently return an error code instead
of NULL when pll initialization fails so that later pll
retrieval can check against an error code. Add checks for these
failures after retrieval of src_pll to avoid invalid pointer
dereferences later in msm_dsi_pll_get_clk_provider.

Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_manager.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
drivers/gpu/drm/msm/dsi/pll/dsi_pll.c