svn commit: r303713 - head/sys/amd64/vmm
John Baldwin
jhb at FreeBSD.org
Wed Aug 3 15:20:11 UTC 2016
Author: jhb
Date: Wed Aug 3 15:20:10 2016
New Revision: 303713
URL: https://svnweb.freebsd.org/changeset/base/303713
Log:
Correct assertion on vcpuid argument to vm_gpa_hold().
PR: 208168
Submitted by: Dave Cameron <daverabbitz at ihug.co.nz>
Reviewed by: grehan
MFC after: 1 month
Modified:
head/sys/amd64/vmm/vmm.c
Modified: head/sys/amd64/vmm/vmm.c
==============================================================================
--- head/sys/amd64/vmm/vmm.c Wed Aug 3 13:51:53 2016 (r303712)
+++ head/sys/amd64/vmm/vmm.c Wed Aug 3 15:20:10 2016 (r303713)
@@ -914,7 +914,7 @@ vm_gpa_hold(struct vm *vm, int vcpuid, v
* 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)
More information about the svn-src-head
mailing list