Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bae651db authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/radeon: fix UVD 256MB check



Otherwise the kernel might reject our decoding requests.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 418cb50b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;