x86/HVM: fix emulation re-issue check
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2016 13:08:54 +0000 (15:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2016 13:08:54 +0000 (15:08 +0200)
?: has lower precedence than !=, hence parentheses are required here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/emulate.c

index cc0b84138beec3c7642c2af681c814e340868c7b..1384a4234b261db0024e09f5f4875ab42698ca28 100644 (file)
@@ -134,7 +134,7 @@ static int hvmemul_do_io(
         p = vio->io_req;
 
         /* Verify the emulation request has been correctly re-issued */
-        if ( (p.type != is_mmio ? IOREQ_TYPE_COPY : IOREQ_TYPE_PIO) ||
+        if ( (p.type != (is_mmio ? IOREQ_TYPE_COPY : IOREQ_TYPE_PIO)) ||
              (p.addr != addr) ||
              (p.size != size) ||
              (p.count != *reps) ||