]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jul 2024 10:49:06 +0000 (12:49 +0200)
commit3fac5aecb59336c9ae808a2cf4733f9f185e3fa2
tree23fa19a68f52f71919c9eb543ef7939c12f8d902
parent7e0fbceae1e671af9d91e338cc8608c9bfb7d2f1
drm/amdgpu: fix the warning about the expression (int)size - len

[ Upstream commit ea686fef5489ef7a2450a9fdbcc732b837fb46a8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c