]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: initialize bo_va_list when add gws to process
authorxinhui pan <xinhui.pan@amd.com>
Wed, 22 Jan 2020 03:03:30 +0000 (11:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jan 2020 21:46:44 +0000 (16:46 -0500)
bo_va_list is list_head, so initialize it.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index b2487f4f271b1d87d23596b6a884abcab62e56c1..fa8ac9d19a7a6d627754ca7f2e6a695608186562 100644 (file)
@@ -2129,6 +2129,7 @@ int amdgpu_amdkfd_add_gws_to_process(void *info, void *gws, struct kgd_mem **mem
                return -ENOMEM;
 
        mutex_init(&(*mem)->lock);
+       INIT_LIST_HEAD(&(*mem)->bo_va_list);
        (*mem)->bo = amdgpu_bo_ref(gws_bo);
        (*mem)->domain = AMDGPU_GEM_DOMAIN_GWS;
        (*mem)->process_info = process_info;