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

bhyve: correctly remove a memory mapping #1262

Merged
merged 1 commit into from
May 29, 2024

Conversation

khorben
Copy link
Contributor

@khorben khorben commented May 29, 2024

In a normal code path while setting up GPU passthrough, the size parameter to munmap() is wrong and its operation not checked for errors, therefore leaking resources.

Reported by: Coverity Scan
CID: 1519830
Sponsored by: The FreeBSD Foundation

@khorben khorben requested a review from bsdjhb as a code owner May 29, 2024 18:11
In a normal code path while setting up GPU passthrough, the size
parameter to munmap() is wrong and its operation not checked for errors,
therefore leaking resources.

Reported by:	Coverity Scan
CID:		1519830
Sponsored by:	The FreeBSD Foundation

Reviewed by: imp
Pull Request: freebsd#1262
@bsdimp
Copy link
Member

bsdimp commented May 29, 2024

Looks good to my eye, and matches adjacent code. Pushing.

@freebsd-git freebsd-git merged commit 19dbf72 into freebsd:main May 29, 2024
7 of 9 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
3 participants