diff options
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 0ccbef18476a..a1a7f39ff3f1 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -1271,7 +1271,7 @@ static int handle_exit(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) | |||
1271 | exit_code); | 1271 | exit_code); |
1272 | 1272 | ||
1273 | if (exit_code >= ARRAY_SIZE(svm_exit_handlers) | 1273 | if (exit_code >= ARRAY_SIZE(svm_exit_handlers) |
1274 | || svm_exit_handlers[exit_code] == 0) { | 1274 | || !svm_exit_handlers[exit_code]) { |
1275 | kvm_run->exit_reason = KVM_EXIT_UNKNOWN; | 1275 | kvm_run->exit_reason = KVM_EXIT_UNKNOWN; |
1276 | kvm_run->hw.hardware_exit_reason = exit_code; | 1276 | kvm_run->hw.hardware_exit_reason = exit_code; |
1277 | return 0; | 1277 | return 0; |