diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2014-10-24 19:00:17 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-04 23:21:29 +0100 |
commit | 083fe3b035d286d79071fd77d2a2c5abfdef495b (patch) | |
tree | c04d0d6ba514d32419b9de5676674c8a3859c646 /drivers/gpu/drm/drm_plane_helper.c | |
parent | c5d974728fafc151e740638b4cf492958be78b5b (diff) | |
download | talos-obmc-linux-083fe3b035d286d79071fd77d2a2c5abfdef495b.tar.gz talos-obmc-linux-083fe3b035d286d79071fd77d2a2c5abfdef495b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_plane_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_plane_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c index 827ec1a3040b..fe4d1fb2376c 100644 --- a/drivers/gpu/drm/drm_plane_helper.c +++ b/drivers/gpu/drm/drm_plane_helper.c @@ -127,6 +127,11 @@ int drm_plane_helper_check_update(struct drm_plane *plane, return -ERANGE; } + if (!fb) { + *visible = false; + return 0; + } + *visible = drm_rect_clip_scaled(src, dest, clip, hscale, vscale); if (!*visible) /* |