KVM: PPC: BookE: Fix a sanity check
[deliverable/linux.git] / arch / powerpc / kvm / booke.c
index 02b4672f7347ecd2ccfc0cd15f5238b8d1681f17..df3f2706d3e57e5f3077e18ac07d7d0b8bb340c5 100644 (file)
@@ -2038,7 +2038,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
                if (type == KVMPPC_DEBUG_NONE)
                        continue;
 
-               if (type & !(KVMPPC_DEBUG_WATCH_READ |
+               if (type & ~(KVMPPC_DEBUG_WATCH_READ |
                             KVMPPC_DEBUG_WATCH_WRITE |
                             KVMPPC_DEBUG_BREAKPOINT))
                        return -EINVAL;
This page took 0.037919 seconds and 5 git commands to generate.