From: Mukul Joshi <[email protected]> Initialize the list head at node creation so list_del_init() is safe on a node that has not yet been added to imp_handles_list.
Signed-off-by: Mukul Joshi <[email protected]> Reviewed-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Alex Deucher <[email protected]> --- drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c index ea89187750126..451c3437f5bd5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c @@ -3263,6 +3263,7 @@ int amdgpu_ualink_import_handle(struct drm_device *dev, imp_xa_node->node_state = AMDGPU_UALINK_NODE_NOT_READY; imp_xa_node->handle = handle; init_completion(&imp_xa_node->npa_done); + INIT_LIST_HEAD(&imp_xa_node->list); kref_init(&imp_xa_node->refcount); /* Take an extra reference to store in the Xarray. The error -- 2.55.0
