drm/atomic: fix potential null ptr on plane enable
authorRob Clark <robdclark@gmail.com>
Mon, 8 Dec 2014 15:45:43 +0000 (10:45 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Dec 2014 17:39:57 +0000 (18:39 +0100)
commit4b08eae52f2f73723dbc4dd4d251eb60a7d8c0e1
tree5c5b82e99a3793fc2aa71100bab3012469bc4c22
parent4e0cd68115620bc3236ff4e58e4c073948629b41
drm/atomic: fix potential null ptr on plane enable

When a plane is being enabled, plane->crtc has not been set yet.  Use
plane->state->crtc.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c