qemu-e2k/hw/isa
Philippe Mathieu-Daudé 2798ee63b0 hw/isa/i82378: Propagate error if PC_SPEAKER device creation failed
In commit 40f8214fcd ("hw/audio/pcspk: Inline pcspk_init()")
we neglected to give a change to the caller to handle failed
device creation cleanly. Respect the caller API contract and
propagate the error if creating the PC_SPEAKER device ever
failed. This avoid yet another bad API use to be taken as
example and copy / pasted all over the code base.

Reported-by: Bernhard Beschow <shentey@gmail.com>
Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231020171509.87839-5-philmd@linaro.org>
2023-11-07 13:08:48 +01:00
..
apm.c nomaintainer: Fix Lesser GPL version number 2020-11-15 17:04:40 +01:00
i82378.c hw/isa/i82378: Propagate error if PC_SPEAKER device creation failed 2023-11-07 13:08:48 +01:00
isa-bus.c hw/isa: Realize ISA bridge device before accessing it 2023-10-19 23:13:28 +02:00
isa-superio.c hw/char/parallel-isa: Export struct ISAParallelState 2023-06-13 11:28:58 +02:00
Kconfig hw/isa/piix3: Merge hw/isa/piix4.c 2023-10-22 05:18:17 -04:00
lpc_ich9.c hw/i386/pc: Wire RTC ISA IRQs in south bridges 2023-10-22 05:18:16 -04:00
meson.build hw/isa/piix3: Merge hw/isa/piix4.c 2023-10-22 05:18:17 -04:00
pc87312.c pc87312: Rename TYPE_PC87312_SUPERIO to TYPE_PC87312 2020-09-09 13:20:22 -04:00
piix.c hw/isa/piix: Implement multi-process QEMU support also for PIIX4 2023-10-22 05:18:17 -04:00
smc37c669-superio.c
trace-events hw/audio/via-ac97: Basic implementation of audio playback 2023-03-08 00:37:48 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vt82c686.c hw/isa/vt82c686: Remove via_isa_set_irq() 2023-07-11 00:11:25 +02:00