drm/amdgpu: fix the warning about the expression (int)size - len
authorJesse Zhang <jesse.zhang@amd.com>
Thu, 25 Apr 2024 07:16:40 +0000 (15:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:45 +0000 (17:22 -0400)
commitea686fef5489ef7a2450a9fdbcc732b837fb46a8
tree5c34c0217d92364b8a026cb8b257d07984a6e2cd
parent029c2b03892bfd7bcf2fc8053ff1641aa73ff58c
drm/amdgpu: fix the warning about the expression (int)size - len

Converting size from size_t to int may overflow.
v2: keep reverse xmas tree order (Christian)

Signed-off-by: Jesse Zhang <jesse.zhang@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_debugfs.c