commit | cbefbdbbd38f68e6ac4e3b5a6a834dad79a46819 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Fri Jan 11 16:36:26 2019 +0000 |
committer | Andrew Scull <ascull@google.com> | Fri Jan 11 16:36:26 2019 +0000 |
tree | df5fb7e487c0e5b5d43eb9b55fc94483ee25cd5e | |
parent | 33fecd37c479820a28ac57e895b81f8b8f3f2469 [diff] [blame] |
Add checkpatch.pl to presubmit tests. Change-Id: I235ea140f5f54dc8b22f1c69dcff5e99a34ff602
diff --git a/src/vm.c b/src/vm.c index 4a14eae..40aa294 100644 --- a/src/vm.c +++ b/src/vm.c
@@ -76,6 +76,7 @@ void vm_start_vcpu(struct vm *vm, size_t index, ipaddr_t entry, uintreg_t arg) { struct vcpu *vcpu = &vm->vcpus[index]; + if (index < vm->vcpu_count) { arch_regs_set_pc_arg(&vcpu->regs, entry, arg); vcpu_on(vcpu);