drm/meson: Fix plane atomic check when no crtc for the plane
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 2 Jan 2017 15:09:59 +0000 (16:09 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 3 Jan 2017 09:23:02 +0000 (10:23 +0100)
commitdcafc45dcb6d8bb6d159ed0a903bd0f3de597fac
tree05b4d0a7ac9ac8017bddbfbe50bbc25af9efca19
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
drm/meson: Fix plane atomic check when no crtc for the plane

When no CRTC is associated with the plane, the meson_plane_atomic_check()
call breaks the kernel with an Oops.

Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/gpu/drm/meson/meson_plane.c