mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
drm/amdgpu: fix error return code in mes_v12_1_map_test_bo
The function mes_v12_1_map_test_bo incorrectly returned 0 unconditionallyon error path,
which would hide the real error code and mislead upperlayers about the failure status.
Fix it by returning the correct error code 'r' instead of 0.
Fixes: 44e5195fa3 ("drm/amdgpu/mes_v12_1: add mes self test");
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a7060a4a5d
commit
5da1e1dfd1
|
|
@ -2063,7 +2063,7 @@ static int mes_v12_1_map_test_bo(struct amdgpu_device *adev,
|
|||
|
||||
error:
|
||||
amdgpu_sync_free(&sync);
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
static int mes_v12_1_test_ring(struct amdgpu_device *adev, int xcc_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user