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>
Fri, 14 Aug 2015 21:10:13 +0000 (17:10 -0400)
commit507d71b1fa91e2ea5887fcc347d5e71605e113f8
tree8f7349504a9f2aa14055f716497a042b55ebf31b
parentbbcc71872a57cb4642c15423ae229aefdf09910a
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