Skip to content

Commit a7bb97d

Browse files
authored
Merge pull request #9577 from acgoldma/fix-9568
ofi: fix segfault in multi NIC select code
2 parents bb28bca + 54e8749 commit a7bb97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ struct fi_info *opal_mca_common_ofi_select_provider(struct fi_info *provider_lis
670670

671671
#if OPAL_OFI_PCI_DATA_AVAILABLE
672672
if (NULL != provider->nic
673-
&& NULL != current_provider->nic->bus_attr
674-
&& current_provider->nic->bus_attr->bus_type == FI_BUS_PCI) {
673+
&& NULL != provider->nic->bus_attr
674+
&& provider->nic->bus_attr->bus_type == FI_BUS_PCI) {
675675
pci = provider->nic->bus_attr->attr.pci;
676676
cpusets_match = compare_cpusets(opal_hwloc_topology, pci);
677677
}

0 commit comments

Comments
 (0)