HomeFreeBSD

vmm: don't return random error from vcpu_lock_all() if vcpu is empty

Description

vmm: don't return random error from vcpu_lock_all() if vcpu is empty

When vcpu array is empty, function would return random value from
stack. What I observed was -1.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D40980

Details

Provenance
glebiusAuthored on Jul 12 2023, 4:16 PM
Reviewer
corvink
Differential Revision
D40980: vmm: don't return random error from vcpu_lock_all() if vcpu is empty
Parents
rGdad11f990e2b: dtrace: prevent forked child from running after an error condition
Branches
Unknown
Tags
Unknown