drm/amdgpu:bo_free_kernel will set ptr to NULL if freed
authorMonk Liu <Monk.Liu@amd.com>
Mon, 6 Feb 2017 08:31:08 +0000 (16:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:52:42 +0000 (23:52 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 1e16b722ff1a5cd266730304fb21d9bdeddd5652..ea3db70d71d2a3f8dea1c7fb0e1a109f7f4dfef4 100644 (file)
@@ -1477,7 +1477,6 @@ static void gfx_v8_0_kiq_fini(struct amdgpu_device *adev)
        struct amdgpu_kiq *kiq = &adev->gfx.kiq;
 
        amdgpu_bo_free_kernel(&kiq->eop_obj, &kiq->eop_gpu_addr, NULL);
-       kiq->eop_obj = NULL;
 }
 
 static int gfx_v8_0_kiq_init(struct amdgpu_device *adev)