qemu-e2k/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
atapi.c
cmd646.c
core.c iostatus: reorganize io error code 2012-09-28 19:40:56 +02:00
ich.c
internal.h
isa.c
macio.c
Makefile.objs
microdrive.c
mmio.c
pci.c iostatus: change is_read to a bool 2012-09-28 19:40:56 +02:00
pci.h
piix.c
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