Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-NIC Bug Fix: Set 'next' attribute of list tail to NULL #1119

Merged

Conversation

philipmarshall21
Copy link
Collaborator

This PR makes a minor bug fix to the code that is responsible for generating a list of providers that have NIC information. This should resolve the issues we were seeing on some of our development systems that have a single NIC when SOS is being used with multi-NIC functionality enabled.

@@ -1562,6 +1562,7 @@ int query_for_fabric(struct fabric_info *info)
multirail_fabric_list_tail = cur_fabric;
}
}
multirail_fabric_list_tail->next = NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can generate a null pointer assignment if it is not assigned within the for loop above.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized, it might have been causing the failure in the testing as well. Please check.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it was the cause of the test failure. Thanks for catching it!

@philipmarshall21 philipmarshall21 marked this pull request as ready for review April 15, 2024 22:00
@philipmarshall21 philipmarshall21 merged commit 4fb8bcd into Sandia-OpenSHMEM:main Apr 16, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants