Skip to content

Commit

Permalink
MFC 303713: Correct assertion on vcpuid argument to vm_gpa_hold().
Browse files Browse the repository at this point in the history
PR:		208168
  • Loading branch information
bsdjhb committed Sep 9, 2016
1 parent 8192ba8 commit 118b08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/amd64/vmm/vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 118b08f

Please sign in to comment.