]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Fix UVD decode image min size calculation
authorDavid Rosca <david.rosca@amd.com>
Thu, 30 Jul 2026 16:01:51 +0000 (18:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 14:22:17 +0000 (10:22 -0400)
commitb8bb9ba3f101a1b0011f785a577a4a0a38371174
treee16f005b0d7736c0566713b58f1c5a08b7bd9d12
parent21a8084cd76223a13493237e04d45f5226d7cee6
drm/amdgpu: Fix UVD decode image min size calculation

This needs to use pitch instead of width. Also reject pitch
over 4096 to avoid overflow.

Signed-off-by: David Rosca <david.rosca@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit b41c8cb12e202b220353332ab87dc01a11f69304)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c