]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Add checks to vbios fetch through ATRM
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 15 Jun 2026 05:32:51 +0000 (11:02 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 15:07:36 +0000 (11:07 -0400)
commit8c3fcfc14fc1320a1155acb2dd7656fce7003bc0
treeb5682ef6ad31b7a74d895bc46de3be872243a657
parent62d8b452615fd7a61976a1372bb81937807968c3
drm/amdgpu: Add checks to vbios fetch through ATRM

Check if a valid buffer object is returned after ATRM call. Also, match
the buffer length against requested size before copying.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c