diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-02-06 03:31:08 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:52:42 -0400 |
commit | 283caf78d38f516000f1b21d26606c4d911073d2 (patch) | |
tree | 4107103bfc27f1a6608e334c1227338078d61303 /drivers/gpu/drm | |
parent | 5ff980439d9423bc40538fc54fff132654489651 (diff) |
drm/amdgpu:bo_free_kernel will set ptr to NULL if freed
Signed-off-by: Monk Liu <Monk.Liu@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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 1e16b722ff1a..ea3db70d71d2 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -1477,7 +1477,6 @@ static void gfx_v8_0_kiq_fini(struct amdgpu_device *adev) | |||
1477 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; | 1477 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; |
1478 | 1478 | ||
1479 | amdgpu_bo_free_kernel(&kiq->eop_obj, &kiq->eop_gpu_addr, NULL); | 1479 | amdgpu_bo_free_kernel(&kiq->eop_obj, &kiq->eop_gpu_addr, NULL); |
1480 | kiq->eop_obj = NULL; | ||
1481 | } | 1480 | } |
1482 | 1481 | ||
1483 | static int gfx_v8_0_kiq_init(struct amdgpu_device *adev) | 1482 | static int gfx_v8_0_kiq_init(struct amdgpu_device *adev) |