mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
Merge remote-tracking branch 'spice/spice.v47' into staging
* spice/spice.v47: qxl: Slot sanity check in qxl_phys2virt() is off by one, fix
This commit is contained in:
commit
515689235c
2
hw/qxl.c
2
hw/qxl.c
@ -1020,7 +1020,7 @@ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id)
|
||||
case MEMSLOT_GROUP_HOST:
|
||||
return (void*)offset;
|
||||
case MEMSLOT_GROUP_GUEST:
|
||||
PANIC_ON(slot > NUM_MEMSLOTS);
|
||||
PANIC_ON(slot >= NUM_MEMSLOTS);
|
||||
PANIC_ON(!qxl->guest_slots[slot].active);
|
||||
PANIC_ON(offset < qxl->guest_slots[slot].delta);
|
||||
offset -= qxl->guest_slots[slot].delta;
|
||||
|
Loading…
Reference in New Issue
Block a user