Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: initialize bo_va_list when add gws to process

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>

authored by

xinhui pan and committed by
Alex Deucher
f583cc57 55bbb747

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
··· 2129 2129 return -ENOMEM; 2130 2130 2131 2131 mutex_init(&(*mem)->lock); 2132 + INIT_LIST_HEAD(&(*mem)->bo_va_list); 2132 2133 (*mem)->bo = amdgpu_bo_ref(gws_bo); 2133 2134 (*mem)->domain = AMDGPU_GEM_DOMAIN_GWS; 2134 2135 (*mem)->process_info = process_info;