summaryrefslogtreecommitdiffstats
path: root/sys/amd64/vmm
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-09-09 20:30:36 +0000
committerjhb <jhb@FreeBSD.org>2016-09-09 20:30:36 +0000
commit118b08f60f0e07d0164ba036c65c9d0f115c9d96 (patch)
tree2507f8558a1f094a5381b51303ef430e548e23bd /sys/amd64/vmm
parent8192ba83909d7ba1e3678b60d665d2aed110e2d6 (diff)
downloadFreeBSD-src-118b08f60f0e07d0164ba036c65c9d0f115c9d96.zip
FreeBSD-src-118b08f60f0e07d0164ba036c65c9d0f115c9d96.tar.gz
MFC 303713: Correct assertion on vcpuid argument to vm_gpa_hold().
PR: 208168
Diffstat (limited to 'sys/amd64/vmm')
-rw-r--r--sys/amd64/vmm/vmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
index cb04f3c..ebd6360 100644
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -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)
OpenPOWER on IntegriCloud