-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/efa: Fix the clean up issue for efa_util_prov
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>
- Loading branch information
1 parent
33f19f9
commit b136180
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters