Fix segfault when libibverbs returns 0 device. (#1820)

Fix: SWDEV-543816
이 커밋은 다음에 포함됨:
Arm Patinyasakdikul 작성하고 GitHub가 2025-07-23 15:18:52 -05:00를 커밋함
1 부모 9a4213356d
커밋 3c9c22bb52
1 파일이 변경됨
+1
+1
파일 보기
@@ -107,6 +107,7 @@ ncclResult_t wrap_ibv_get_device_list(struct ibv_device ***ret, int *num_devices
}
ncclResult_t wrap_ibv_free_device_list(struct ibv_device **list) {
if (list == nullptr) return ncclSuccess;
IBV_PASSTHRU(ibvSymbols, ibv_internal_free_device_list, ibv_internal_free_device_list(list));
}