HomeFreeBSD

bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)

Description

bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)

ioctl(2)'s with integer argument shall pass command argument by value,
not by pointer. The ioctl(2) manual page is not very clear about that.
See sys/kern/sys_generic.c:sys_ioctl() near IOC_VOID.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D42366
Fixes: fd8b9c73a5a63a7aa438a73951d7a535b4f25d9a

Details

Provenance
glebiusAuthored on Oct 26 2023, 9:59 AM
Reviewer
markj
Differential Revision
D42366: bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)
Parents
rGd3a36e4b7459: Delete snapshot after opening it when running fsck_ffs(9) in background.
Branches
Unknown
Tags
Unknown