[PATCH] drm/amdgpu: Fix the incomplete product number

André Almeida andrealmeid at igalia.com
Mon Jul 25 19:38:00 UTC 2022


Às 01:56 de 22/07/22, Roy Sun escreveu:
> 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 at amd.com>
> ---

Reviewed-by: André Almeida <andrealmeid at igalia.com>

Next time, please make your subject as [PATCH v2] and add a changelog to
make review easier.


More information about the amd-gfx mailing list