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

prov/efa: Fix the clean up issue for efa_util_prov #10807

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

shijin-aws
Copy link
Contributor

Commit b7b9dd6 makes efa_prov always returned
by EFA_INI, even when efa device is not available. Then in fi_fini the efa_prov_finialize` will be
triggered on non-EFA platform. However, the current efa_prov_finalize doesn't handle the case where
the resources were not created, and it will cause
a double free error.

This patch fixex this issue.

zachdworkin
zachdworkin previously approved these changes Feb 20, 2025
@zachdworkin
Copy link
Contributor

@shijin-aws I am forcing intel ci to run this. The X will go away when our controller picks up the job

Commit b7b9dd6 makes efa_prov always returned
by EFA_INI, even when efa device is not available.
Then in `fi_fini` the efa_prov_finialize` will be
triggered on non-EFA platform. However, the current
efa_prov_finalize doesn't handle the case where
the resources were not created, and it will cause
a double free error.

This patch fixes this issue.

Signed-off-by: Shi Jin <sjina@amazon.com>
@shijin-aws
Copy link
Contributor Author

bot:aws:retest

@shijin-aws
Copy link
Contributor Author

@zachdworkin fixed a bug in earlier push, should be good now.

@zachdworkin
Copy link
Contributor

@shijin-aws thanks, our CI passed the second re-run

@shijin-aws shijin-aws merged commit b136180 into ofiwg:main Feb 21, 2025
13 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