HomeFreeBSD

bhyve: correctly remove a memory mapping

Description

bhyve: correctly remove a memory mapping

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: https://github.com/freebsd/freebsd-src/pull/1262

Details

Provenance
khorben_defora.orgAuthored on May 29 2024, 6:00 PM
impCommitted on May 29 2024, 7:39 PM
Parents
rGf13275cf03ae: export $autoboot var when running from $boottrace_cmd
Branches
Unknown
Tags
Unknown