]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3537afee5c2f6ef3ad4f0174c22447f170605f1
treec045363a0ddf5a1563b5c2e95b0416904e48b760
parent04433f17bc777a8a9e88df256c9a14d14a6a3efc
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