qemu-e2k/hw/mem
Markus Armbruster 8574c9f1ad memory-device: Fix memory pre-plug error API violations
memory_device_get_free_addr() dereferences @errp when
memory_device_check_addable() fails.  That's wrong; see the big
comment in error.h.  Introduced in commit 1b6d6af21b "pc-dimm: factor
out capacity and slot checks into MemoryDevice".

No caller actually passes null.

Fix anyway: splice in a local Error *err, and error_propagate().

Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20191204093625.14836-11-armbru@redhat.com>
2019-12-18 08:36:15 +01:00
..
Kconfig
Makefile.objs memory-device: simplify Makefile.objs conditions 2019-10-22 09:38:42 +02:00
memory-device.c memory-device: Fix memory pre-plug error API violations 2019-12-18 08:36:15 +01:00
nvdimm.c Include sysemu/hostmem.h less 2019-08-16 13:31:53 +02:00
pc-dimm.c numa: move numa global variable nb_numa_nodes into MachineState 2019-09-03 11:26:55 -03:00
trace-events