summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@amd.com>2020-08-11 16:10:19 +0200
committerAlex Deucher <alexander.deucher@amd.com>2020-08-14 22:22:40 +0200
commit2f53072434525eccdd4a4cab3837096c1a3df357 (patch)
tree09bced0b9df0e39f1213f45b5a6a175d3e21dcb1
parentdrm/amdgpu: annotate a false positive recursive locking (diff)
downloadlinux-2f53072434525eccdd4a4cab3837096c1a3df357.tar.xz
linux-2f53072434525eccdd4a4cab3837096c1a3df357.zip
drm/amdgpu: pass NULL pointer instead of 0
Fixes: c030f2e4166c3f55 ("drm/amdgpu: add amdgpu_ras.c to support ras (v2)") Signed-off-by: Nirmoy Das <nirmoy.das@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 2d1fad1abf7a..cd1403f83dcf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -1570,7 +1570,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
}
if (amdgpu_device_should_recover_gpu(ras->adev))
- amdgpu_device_gpu_recover(ras->adev, 0);
+ amdgpu_device_gpu_recover(ras->adev, NULL);
atomic_set(&ras->in_recovery, 0);
}