mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct assertion on vcpuid argument to vm_gpa_hold().
PR: 208168 Submitted by: Dave Cameron <daverabbitz@ihug.co.nz> Reviewed by: grehan MFC after: 1 month
This commit is contained in:
parent
fa03524a9f
commit
2de70600fa
1 changed files with 1 additions and 1 deletions
|
|
@ -914,7 +914,7 @@ vm_gpa_hold(struct vm *vm, int vcpuid, vm_paddr_t gpa, size_t len, int reqprot,
|
|||
* guaranteed if at least one vcpu is in the VCPU_FROZEN state.
|
||||
*/
|
||||
int state;
|
||||
KASSERT(vcpuid >= -1 || vcpuid < VM_MAXCPU, ("%s: invalid vcpuid %d",
|
||||
KASSERT(vcpuid >= -1 && vcpuid < VM_MAXCPU, ("%s: invalid vcpuid %d",
|
||||
__func__, vcpuid));
|
||||
for (i = 0; i < VM_MAXCPU; i++) {
|
||||
if (vcpuid != -1 && vcpuid != i)
|
||||
|
|
|
|||
Loading…
Reference in a new issue