HomeFreeBSD

libvmm: explicitly save and restore errno in vm_open()

Description

libvmm: explicitly save and restore errno in vm_open()

In commit 6bb140e3ca895a14, vm_destroy() was replaced with free() to
preserve errno. However, it's possible that free() may change the errno
as well. Keep the free() call, but explicitly save and restore errno.

Noted by: jhb
Fixes: 6bb140e3ca895a14

Details

Provenance
rewAuthored on Mar 11 2021, 7:27 PM
Parents
rGb2ae176d914a: Sixteen bit I2c addresses are always little endian.
Branches
Unknown
Tags
Unknown