diff options
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 3483ac978c76..1824949821f9 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -4261,9 +4261,9 @@ static int svm_check_intercept(struct kvm_vcpu *vcpu, | |||
4261 | if (info->intercept == x86_intercept_in || | 4261 | if (info->intercept == x86_intercept_in || |
4262 | info->intercept == x86_intercept_ins) { | 4262 | info->intercept == x86_intercept_ins) { |
4263 | exit_info |= SVM_IOIO_TYPE_MASK; | 4263 | exit_info |= SVM_IOIO_TYPE_MASK; |
4264 | bytes = info->src_bytes; | ||
4265 | } else { | ||
4266 | bytes = info->dst_bytes; | 4264 | bytes = info->dst_bytes; |
4265 | } else { | ||
4266 | bytes = info->src_bytes; | ||
4267 | } | 4267 | } |
4268 | 4268 | ||
4269 | if (info->intercept == x86_intercept_outs || | 4269 | if (info->intercept == x86_intercept_outs || |