KVM: x86: fix -DDEBUG oops
authorZachary Amsden <zamsden@redhat.com>
Mon, 14 Jun 2010 21:42:15 +0000 (11:42 -1000)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:46:46 +0000 (10:46 +0300)
Fix a slight error with assertion in local APIC code.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/lapic.c

index d8258a0060f875582f83365d54bee7f7f7dea0e0..024f6d1c29961aeb64d73bb8d801dfc35fef02be 100644 (file)
@@ -329,7 +329,7 @@ int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
                   "dest_mode 0x%x, short_hand 0x%x\n",
                   target, source, dest, dest_mode, short_hand);
 
-       ASSERT(!target);
+       ASSERT(target);
        switch (short_hand) {
        case APIC_DEST_NOSHORT:
                if (dest_mode == 0)