]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix the incomplete product number
authorRoy Sun <Roy.Sun@amd.com>
Wed, 20 Jul 2022 08:19:50 +0000 (16:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:14 +0000 (16:05 -0400)
commitb91137faf45f6a42a129163f77ede012eea35d77
tree14f96f520644df90b839f3ef0f87ce0254243bda
parent1c9f6cbb24bf62b5f6760c1ae2589cd6773cbe5d
drm/amdgpu: Fix the incomplete product number

The comments say that the product number is a 16-digit HEX string so the
buffer needs to be at least 17 characters to hold the NUL terminator. Expand
the buffer size to 20 to avoid the alignment issues.

The comment:Product number should only be 16 characters. Any
more,and something could be wrong. Cap it at 16 to be safe

Signed-off-by: Roy Sun <Roy.Sun@amd.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h