diff options
| author | Colin Ian King <colin.i.king@gmail.com> | 2025-09-03 11:20:18 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-05 22:59:11 +0300 |
| commit | 4320fd9e0d817f63b31dc380a1127335c445083c (patch) | |
| tree | 04e8557b04f255016ff38e6387fdcafa66653084 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | |
| parent | 1e6d36e15b8873fc3ade8b714d35d69efd5e1427 (diff) | |
| download | linux-4320fd9e0d817f63b31dc380a1127335c445083c.tar.xz | |
drm/amd/amdgpu: Fix a less than zero check on a uint32_t struct field
Currently the error check from the call to mes_v12_inv_tlb_convert_hub_id
is always false because a uint32_t struct field hub_id is being used to
to perform the less than zero error check. Fix this by using the int
variable ret to perform the check.
Fixes: 87e65052616c ("drm/amd/amdgpu : Use the MES INV_TLBS API for tlb invalidation on gfx12")
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c')
0 files changed, 0 insertions, 0 deletions
