summaryrefslogtreecommitdiffstats
path: root/hw/qdev-properties.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-01-12 21:16:59 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-12 13:24:52 -0600
commitdbd483242c2e6dfaacb9fd3d20c333bbdad87243 (patch)
tree5d148bdf9ea7afc714804cbfa15bbd5aa7ccc8ee /hw/qdev-properties.c
parent3d72f9a2be640f368229d579e80ce4ef2a823e49 (diff)
downloadhqemu-dbd483242c2e6dfaacb9fd3d20c333bbdad87243.zip
hqemu-dbd483242c2e6dfaacb9fd3d20c333bbdad87243.tar.gz
qdev: fix thinko leading to guest crashes
Without this fix, guest crashes with drive=virtio. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r--hw/qdev-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index 9e123ae..277ff9e 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -20,7 +20,7 @@ static void bit_prop_set(DeviceState *dev, Property *props, bool val)
uint32_t *p = qdev_get_prop_ptr(dev, props);
uint32_t mask = qdev_get_prop_mask(props);
if (val)
- *p |= ~mask;
+ *p |= mask;
else
*p &= ~mask;
}
OpenPOWER on IntegriCloud