diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-03-20 11:28:56 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-21 07:44:21 +0300 |
commit | 81ce8bea035befed2ae7670bf9f9404fa3f46f71 (patch) | |
tree | 7fafc75985f18b09b48e6037e252ca90b296da24 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | e5b03032e34da84ee765ffbe4e36d344fdd04108 (diff) | |
download | linux-81ce8bea035befed2ae7670bf9f9404fa3f46f71.tar.xz |
drm/amdgpu: Fix kernel NULL pointer dereference when amdgpu fini
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 11dfe57bd8bb..3a5ca462abf0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -259,6 +259,7 @@ void amdgpu_irq_fini(struct amdgpu_device *adev) } } kfree(adev->irq.client[i].sources); + adev->irq.client[i].sources = NULL; } } |