drm/crtc_helper: Reset empty plane state in drm_helper_crtc_mode_set_base()
authorLiu Ying <gnuiyl@gmail.com>
Tue, 5 Apr 2016 08:50:39 +0000 (16:50 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Apr 2016 06:18:15 +0000 (08:18 +0200)
commit6c14838057e4bd5d7b65a1e51310abf3c001c466
treea6f2b4b7785ae32b62dcab4f86e883a12340b030
parent1b311124a226f3c2b43a7aca08883b5e5acc720c
drm/crtc_helper: Reset empty plane state in drm_helper_crtc_mode_set_base()

Transitional drivers might access the NULL pointer plane->state in
drm_helper_crtc_mode_set_base(), which causes NULL pointer dereference.
So, let's reset it before handing it over to those drivers.
commit e4f31ad2b713 ("drm: reset empty state in transitional helpers")
did the same thing for other transitional helpers, but it seems this one
was missed.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1459846239-8946-1-git-send-email-gnuiyl@gmail.com
drivers/gpu/drm/drm_crtc_helper.c