drm: make sure visible is set to false if fb is null
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 24 Oct 2014 18:00:17 +0000 (19:00 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Nov 2014 22:21:29 +0000 (23:21 +0100)
commit083fe3b035d286d79071fd77d2a2c5abfdef495b
treec04d0d6ba514d32419b9de5676674c8a3859c646
parentc5d974728fafc151e740638b4cf492958be78b5b
drm: make sure visible is set to false if fb is null

We can't let visible set true while the fb is null, some places of
the code only check for visible to base its decisions.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_plane_helper.c