summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce100
diff options
context:
space:
mode:
authorLeon Elazar <leon.elazar@amd.com>2017-01-30 10:25:43 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:13:16 -0400
commit3efeef11f471c1c5ee116cb00d27f426bfa969dc (patch)
treec7661695a77759ed9f714d0057133281e3956992 /drivers/gpu/drm/amd/display/dc/dce100
parent0f56b418ef497032a71358fb8c76d10f24fd5d58 (diff)
downloadlinux-stable-3efeef11f471c1c5ee116cb00d27f426bfa969dc.tar.gz
linux-stable-3efeef11f471c1c5ee116cb00d27f426bfa969dc.tar.bz2
linux-stable-3efeef11f471c1c5ee116cb00d27f426bfa969dc.zip
drm/amd/display: surface validation on dce100
Signed-off-by: Leon Elazar <leon.elazar@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce100')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
index 6ae334b42fbf..800b22e70c7e 100644
--- a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
@@ -789,9 +789,9 @@ static bool dce100_validate_surface_sets(
return false;
if (set[i].surfaces[0]->clip_rect.width
- != set[i].stream->src.width
+ < set[i].stream->src.width
|| set[i].surfaces[0]->clip_rect.height
- != set[i].stream->src.height)
+ < set[i].stream->src.height)
return false;
if (set[i].surfaces[0]->format
>= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)