]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc4004d5d21adbd9e8206578dbf1615a6f2163bb
treec2882af2e01a48f05dfe05bddddfa7a3d41c08d4
parent453cfe0233d76d77915710eb5eeb41b0bb5fc2b6
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