]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Fix vbios build number parsing logic
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 18 Sep 2025 12:22:04 +0000 (17:52 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:21:09 +0000 (10:21 -0400)
commitb29c22b8dafd951664a491bf629e615d81513197
tree6a5cf6db81e68efdee5cf06865d804743968604b
parent342f141ba9f4c9e39de342d047a5245e8f4cda19
drm/amdgpu: Fix vbios build number parsing logic

It's not necessary that the build string and atom header section has a
difference of 32 bytes. Use the remaining bytes in the section as copy
limit.

Fixes: d6fa80266178 ("drm/amdgpu: Add vbios build number interface")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c