qemu-patch-raspberry4/hw/mips
Markus Armbruster a729f9bc84 mips/malta: Fix create_cps() error handling
The Error ** argument must be NULL, &error_abort, &error_fatal, or a
pointer to a variable containing NULL.  Passing an argument of the
latter kind twice without clearing it in between is wrong: if the
first call sets an error, it no longer points to NULL for the second

create_cps() is wrong that way.  The last calls treats an error as
fatal.  Do that for the prior ones, too.

Fixes: bff384a4fb
Cc: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200505101908.6207-7-armbru@redhat.com>
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
2020-05-27 07:45:30 +02:00
..
addr.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
boston.c mips/boston: use memdev for RAM 2020-02-19 16:49:59 +00:00
cps.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
gt64xxx_pci.c hw: replace hw/i386/pc.h with a header just for the i8259 2019-12-17 19:33:49 +01:00
Kconfig hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c 2019-10-04 18:49:16 +02:00
Makefile.objs hw/mips/Makefile.objs: Create CONFIG_* for r4k, malta, mipssim boards 2019-02-05 16:50:19 +01:00
mips_fulong2e.c hw/mips/mips_fulong2e: Remove unused 'audio/audio.h' include 2020-05-26 08:46:14 +02:00
mips_int.c hw/mips/mips_int: Simplify cpu_mips_irq_init_cpu() 2020-02-27 14:18:31 +01:00
mips_jazz.c hw/mips: Use memory_region_init_rom() with read-only regions 2020-02-27 14:18:47 +01:00
mips_malta.c mips/malta: Fix create_cps() error handling 2020-05-27 07:45:30 +02:00
mips_mipssim.c hw/mips: Use memory_region_init_rom() with read-only regions 2020-02-27 14:18:47 +01:00
mips_r4k.c hw/ide: Move MAX_IDE_DEVS define to hw/ide/internal.h 2020-03-17 12:22:36 -04:00
trace-events hw/mips/gt64xxx: Remove dynamic field width from trace events 2019-11-19 14:46:01 +01:00