Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 283caf78 authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

drm/amdgpu:bo_free_kernel will set ptr to NULL if freed

parent 5ff98043
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)