drm/amdkfd: init drm_client with funcs hook
authorFlora Cui <flora.cui@amd.com>
Wed, 10 Jan 2024 11:23:56 +0000 (19:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jan 2024 20:41:08 +0000 (15:41 -0500)
commit733965a90f885de5e9626d383c7605a0a7850074
tree1b2a80a0392ea126ed9f93d8d849dfecf58b0cea
parentab762f937db92034ed1a2d9ff7b6be73bd8b4f46
drm/amdkfd: init drm_client with funcs hook

otherwise drm_client_dev_unregister() would try to
kfree(&adev->kfd.client).

Fixes: 1819200166ce ("drm/amdkfd: Export DMABufs from KFD using GEM handles")
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c