qemu-patch-raspberry4/tests/libqos
John Snow 95ea663693 libqos/ahci: fix memory management bugs
There's a handful of trivial bugs in the libqos/ahci functions,
squish them together.

- Zero cached pointers after freeing them
- The Command List Buffer is an array of 32x 32 byte structures, not
  32x 8 byte pointers -- it's 1MiB, not 256 bytes. Zero it ALL.
- Free the correct command in ahci_pick_cmd.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1434470575-21625-4-git-send-email-jsnow@redhat.com
2015-07-04 02:06:02 -04:00
..
ahci.c libqos/ahci: fix memory management bugs 2015-07-04 02:06:02 -04:00
ahci.h libqos/ahci: Add halted command helpers 2015-05-22 15:58:22 -04:00
fw_cfg.c libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
fw_cfg.h libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
i2c-omap.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
i2c.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
i2c.h libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
libqos-pc.c qtest/ahci: Allow override of default CLI options 2015-04-28 15:27:51 -04:00
libqos-pc.h qtest/ahci: Allow override of default CLI options 2015-04-28 15:27:51 -04:00
libqos.c libqos: Add migration helpers 2015-05-22 15:58:22 -04:00
libqos.h libqos: Add migration helpers 2015-05-22 15:58:22 -04:00
malloc-generic.c libqos: Add malloc generic 2015-03-10 14:02:20 +01:00
malloc-generic.h libqos: Add malloc generic 2015-03-10 14:02:20 +01:00
malloc-pc.c libqos: Update QGuestAllocator to be opaque 2015-02-16 14:38:55 +00:00
malloc-pc.h libqos: Convert malloc-pc allocator to a generic allocator 2015-01-13 11:47:57 +00:00
malloc.c libqos: Allow calling guest_free on NULL pointer 2015-06-17 16:03:47 +02:00
malloc.h libqos: Add migration helpers 2015-05-22 15:58:22 -04:00
pci-pc.c libqos: Add qpci_plug_device_test() and qpci_unplug_acpi_device_test() 2014-10-15 05:03:12 +02:00
pci-pc.h libqos: Fixes a small memory leak. 2014-08-15 18:03:13 +01:00
pci.c ahci: add test_pci_enable to ahci-test. 2014-09-22 11:39:40 +01:00
pci.h libqos: Add qpci_plug_device_test() and qpci_unplug_acpi_device_test() 2014-10-15 05:03:12 +02:00
usb.c tests: usb: Generic usb device hotplug 2014-10-15 05:03:13 +02:00
usb.h tests: usb: Generic usb device hotplug 2014-10-15 05:03:13 +02:00
virtio-mmio.c libqos: Add virtio MMIO support 2015-03-10 14:02:20 +01:00
virtio-mmio.h libqos: Add virtio MMIO support 2015-03-10 14:02:20 +01:00
virtio-pci.c libqos: Solve bug in interrupt checking when using MSIX in virtio-pci.c 2015-03-10 14:02:23 +01:00
virtio-pci.h libqos: Remove PCI assumptions in constants of virtio driver 2015-03-10 14:02:20 +01:00
virtio.c libqos: Change use of pointers to uint64_t in virtio 2015-03-10 14:02:20 +01:00
virtio.h libqos: Complete virtio device ID definition list 2015-06-17 16:03:47 +02:00