drm/msm/dsi: check msm_dsi and dsi pointers before use
authorLloyd Atkinson <latkinso@codeaurora.org>
Tue, 16 Jan 2018 21:26:03 +0000 (16:26 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:20 +0000 (10:41 -0500)
commit3f0689e663524115b068258bab789dff1ddab5da
treec2882af2e01a48f05dfe05bddddfa7a3d41c08d4
parent6e1787cf45e48866c01dadc2a1b6c3d63d75b8d1
drm/msm/dsi: check msm_dsi and dsi pointers before use

Move null checks of pointer arguments to the beginning of the
modeset init function since they are referenced immediately
instead of after they have already been used.

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