summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian König2018-09-26 14:17:03 +0200
committerAlex Deucher2018-12-03 17:14:54 +0100
commit30da7bb18471327fbeddb976de2b21fd9e34c36a (patch)
tree3e98fd2c8bbc20f4277247015422e28e51b70803 /drivers
parentdrm/amdgpu: remove amdgpu_bo_backup_to_shadow (diff)
downloadkernel-qcow2-linux-30da7bb18471327fbeddb976de2b21fd9e34c36a.tar.gz
kernel-qcow2-linux-30da7bb18471327fbeddb976de2b21fd9e34c36a.tar.xz
kernel-qcow2-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')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c3
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);