qemu/softmmu
Markus Armbruster f9dfae9cb6 vl: Clean up -smp 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
call.

machine_parse_property_opt() is wrong that way: it passes @errp to
keyval_parse() without checking for failure, then passes it to
keyval_merge().  Harmless, since the only caller passes &error_fatal.

Clean up: drop the parameter, and use &error_fatal directly.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210720125408.387910-16-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
[Rebased, conflict with commit a3c2f12830 resolved]
2021-08-26 17:15:28 +02:00
..
arch_init.c
balloon.c
bootdevice.c
cpu-throttle.c
cpu-timers.c
cpus.c misc: Remove redundant new line in perror() 2021-07-09 18:42:46 +02:00
datadir.c
device_tree.c
dma-helpers.c
globals.c
icount.c
ioport.c
main.c
memory_mapping.c
memory.c Trivial patches pull request 20210709 2021-07-11 18:49:25 +01:00
meson.build
physmem.c softmmu/physmem: fix wrong assertion in qemu_ram_alloc_internal() 2021-08-17 16:51:39 +01:00
qdev-monitor.c
qemu-seccomp.c seccomp: don't block getters for resource control syscalls 2021-07-14 14:15:52 +01:00
qtest.c
rtc.c
runstate-action.c
runstate.c runstate: Initialize Error * to NULL 2021-06-15 17:17:09 +02:00
timers-state.h qemu/atomic: Add aligned_{int64,uint64}_t types 2021-07-21 07:45:38 -10:00
tpm.c
trace-events memory: Display MemoryRegion name in read/write ops trace events 2021-07-09 18:42:46 +02:00
trace.h
vl.c vl: Clean up -smp error handling 2021-08-26 17:15:28 +02:00