]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Add size guard before copy discovery binary
authorFeifei Xu <Feifei.Xu@amd.com>
Fri, 15 May 2026 06:27:02 +0000 (14:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:48:40 +0000 (13:48 -0400)
commit5ac01ec854079ac95733ac9a8f3eb694bbe8ff5a
treead218b5dd426cf5a3a1d511e3ea337b22f4f829b
parentac081deaf16a639ea7dff2f285fe421a33c1ade0
drm/amdgpu: Add size guard before copy discovery binary

Fix the firmware blob copied into fixed-size buffer without length check.

Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c