diff options
| author | Christian König <christian.koenig@amd.com> | 2018-09-26 14:17:03 +0200 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2018-12-03 11:14:54 -0500 |
| commit | 30da7bb18471327fbeddb976de2b21fd9e34c36a (patch) | |
| tree | 3e98fd2c8bbc20f4277247015422e28e51b70803 /drivers/gpu/drm/amd | |
| parent | drm/amdgpu: remove amdgpu_bo_backup_to_shadow (diff) | |
| download | linux-30da7bb18471327fbeddb976de2b21fd9e34c36a.tar.gz linux-30da7bb18471327fbeddb976de2b21fd9e34c36a.zip | |
drm/amdgpu: add missing error handling
We ignored the return code here.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index ed3145b2a596..016c7aab4a29 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -902,6 +902,9 @@ static int gmc_v9_0_sw_init(void *handle) /* This interrupt is VMC page fault.*/ r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC, VMC_1_0__SRCID__VM_FAULT, &adev->gmc.vm_fault); + if (r) + return r; + r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UTCL2, UTCL2_1_0__SRCID__FAULT, &adev->gmc.vm_fault); |
