diff options
author | Igor Mammedov | 2014-06-17 12:17:05 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2014-06-19 17:44:22 +0200 |
commit | c3ba3095070728f9c247f9e89652b9ea3f94319f (patch) | |
tree | be4053d7b94cc130a98a3cd60b1285b46aaa69dd /include/hw/mem/pc-dimm.h | |
parent | pc: acpi: do not hardcode preprocessor (diff) | |
download | qemu-c3ba3095070728f9c247f9e89652b9ea3f94319f.tar.gz qemu-c3ba3095070728f9c247f9e89652b9ea3f94319f.tar.xz qemu-c3ba3095070728f9c247f9e89652b9ea3f94319f.zip |
numa: handle mmaped memory allocation failure correctly
when memory_region_init_ram_from_file() fails
memory_region_size() will still return size that was
provided at region init time.
Instead use errp to properly detect error condition.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/mem/pc-dimm.h')
0 files changed, 0 insertions, 0 deletions