mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 18:20:25 +02:00
drm/amdgpu: fix unsigned error codes
Fixes: 5d5eac7e83 ("drm/amdgpu: add selftest framework for UMSCH")
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/all/ZPhddADtKmOuVyDq@lang-desktop
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fe2b830073
commit
dbb8052151
1 changed files with 3 additions and 4 deletions
|
|
@ -334,11 +334,10 @@ static int setup_umsch_mm_test(struct amdgpu_device *adev,
|
||||||
if (r)
|
if (r)
|
||||||
goto error_free_vm;
|
goto error_free_vm;
|
||||||
|
|
||||||
test->pasid = amdgpu_pasid_alloc(16);
|
r = amdgpu_pasid_alloc(16);
|
||||||
if (test->pasid < 0) {
|
if (r < 0)
|
||||||
r = test->pasid;
|
|
||||||
goto error_fini_vm;
|
goto error_fini_vm;
|
||||||
}
|
test->pasid = r;
|
||||||
|
|
||||||
r = amdgpu_bo_create_kernel(adev, sizeof(struct umsch_mm_test_ctx_data),
|
r = amdgpu_bo_create_kernel(adev, sizeof(struct umsch_mm_test_ctx_data),
|
||||||
PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT,
|
PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue