Skip to contentSkip to conversation

hw/qxl: fix condition for exiting guest_bug

PATCH New Alon Levy 1 participant 1 message Oct 2, 2012

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH 1/1 hw/qxl: fix condition for exiting guest_bug

Reported and suggested by Paolo Bonzini, thanks.

---
 hw/qxl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/qxl.c +1 -1
index 33169f3..58c4643 100644
@@ -1461,7 +1461,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
     qxl_async_io async = QXL_SYNC;
     uint32_t orig_io_port = io_port;
 
-    if (d->guest_bug && !io_port == QXL_IO_RESET) {
+    if (d->guest_bug && io_port != QXL_IO_RESET) {
         return;
     }
 
Signature · 1 line
1.7.12.1