drm/msm: mdp4: Fix drm_framebuffer dereference crash
authorArchit Taneja <architt@codeaurora.org>
Fri, 26 Jun 2015 10:19:43 +0000 (15:49 +0530)
committerRob Clark <robdclark@gmail.com>
Wed, 29 Jul 2015 20:38:24 +0000 (16:38 -0400)
commita1c3e3e01ee301de6a13e696ef8775f40ca339ac
treec045363a0ddf5a1563b5c2e95b0416904e48b760
parentac45146733b03a1c8e3a6a33720bdc42804cc09b
drm/msm: mdp4: Fix drm_framebuffer dereference crash

mdp4_get_frame_format() can dereference a drm_framebuffer when it's NULL.
Call it in mdp4_plane_mode_set only when we know fb is non-NULL.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c