From: Christian König Date: Fri, 20 Dec 2013 16:48:54 +0000 (+0100) Subject: drm/radeon: fix UVD 256MB check X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bae651dbd7ade3c5d6518f89599ae680a2fe2b85;p=deliverable%2Flinux.git drm/radeon: fix UVD 256MB check Otherwise the kernel might reject our decoding requests. Signed-off-by: Christian König Cc: stable@vger.kernel.org Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c index 373d088bac66..b9c0529b4a2e 100644 --- a/drivers/gpu/drm/radeon/radeon_uvd.c +++ b/drivers/gpu/drm/radeon/radeon_uvd.c @@ -473,7 +473,7 @@ static int radeon_uvd_cs_reloc(struct radeon_cs_parser *p, return -EINVAL; } - if ((start >> 28) != (end >> 28)) { + if ((start >> 28) != ((end - 1) >> 28)) { DRM_ERROR("reloc %LX-%LX crossing 256MB boundary!\n", start, end); return -EINVAL;