qemu-patch-raspberry4/hw/ide
Jim Meyering a5cf8262e4 scsi, pci, qdev, isa-bus, sysbus: don't let *_get_fw_dev_path return NULL
Use g_strdup rather than strdup, because the sole caller
(qdev_get_fw_dev_path_helper) assumes it gets non-NULL, and dereferences
it.  Besides, in that caller, the allocated buffer is already freed with
g_free, so it's better to allocate with a matching g_strdup.

In one case, (scsi-bus.c) it was trivial, so I replaced an snprintf+
g_strdup combination with an equivalent g_strdup_printf use.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-10-05 07:58:36 -05:00
..
ahci.c ahci: properly reset PxCMD on HBA reset 2012-09-12 15:50:09 +02:00
ahci.h ide/ahci: Use universal DMA helper functions 2012-06-27 16:33:25 -05:00
atapi.c ATAPI: STARTSTOPUNIT only eject/load media if powercondition is 0 2012-09-12 15:50:09 +02:00
cmd646.c Revert "fix some debug printf format strings" 2012-08-27 18:33:24 +04:00
core.c iostatus: reorganize io error code 2012-09-28 19:40:56 +02:00
ich.c Merge branch pci into master 2012-07-29 17:05:35 +03:00
internal.h ahci: Fix ahci cdrom read corruptions for reads > 128k 2012-08-10 10:25:12 +02:00
isa.c qom: Unify type registration 2012-02-15 09:39:21 -06:00
macio.c iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers 2012-06-27 16:33:25 -05:00
Makefile.objs build: convert libhw to nested Makefile.objs 2012-06-07 09:21:17 +02:00
microdrive.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
mmio.c ide/mmio: convert to memory API 2011-11-24 18:31:59 +02:00
pci.c iostatus: change is_read to a bool 2012-09-28 19:40:56 +02:00
pci.h ide: convert to memory API 2011-08-08 10:15:54 -05:00
piix.c Merge branch pci into master 2012-07-29 17:05:35 +03:00
qdev.c scsi, pci, qdev, isa-bus, sysbus: don't let *_get_fw_dev_path return NULL 2012-10-05 07:58:36 -05:00
via.c Revert "fix some debug printf format strings" 2012-08-27 18:33:24 +04:00