drm/amdkfd: Release the topology_lock in error case
Move the topology-locked part of kfd_topology_add_device into a separate function to simlpify error handling and release the topology lock consistently. Reported-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NFelix Kuehling <felix.kuehling@gmail.com> Signed-off-by: NMa Jun <Jun.Ma2@amd.com> Reviewed-by: NFelix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
Showing
想要评论请 注册 或 登录