mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 12:07:25 +00:00
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>
This commit is contained in:
parent
3d72f9a2be
commit
dbd483242c
@ -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 *p = qdev_get_prop_ptr(dev, props);
|
||||||
uint32_t mask = qdev_get_prop_mask(props);
|
uint32_t mask = qdev_get_prop_mask(props);
|
||||||
if (val)
|
if (val)
|
||||||
*p |= ~mask;
|
*p |= mask;
|
||||||
else
|
else
|
||||||
*p &= ~mask;
|
*p &= ~mask;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user