]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Reject UVD message with invalid number of h265 refs
authorDavid Rosca <david.rosca@amd.com>
Tue, 11 Aug 2026 09:03:10 +0000 (11:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 14:23:01 +0000 (10:23 -0400)
commit9fca434208f1f9ab977feac62df8ebb1cc7ce893
treec02a2654518ac9bf7e770ba2d8e116e1b1abc741
parentcd688a3cb342b9f56399aa076157f1c324c15c5a
drm/amdgpu: Reject UVD message with invalid number of h265 refs

Same change as for h264, avoids overflow later when calculating
min dpb size.

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