Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hugepage_setup: Cleanup hugepage when setup process fails
If the setup process fails, func will raise an error and return. Meanwhile, if the system has created some other hugepages, they will remain on the host to consume memory. Therefore, do the cleanup process after failing. Signed-off-by: Hu Shuai <[email protected]>
- Loading branch information