pc-dimm: fix error messages if no slots were defined
authorDavid Hildenbrand <david@redhat.com>
Fri, 27 Apr 2018 12:05:15 +0000 (14:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 May 2018 12:33:40 +0000 (14:33 +0200)
commit3ff333effa319df6178f138d9cf32e3937419790
tree2894b77989108a9136fe4ef70df3a822083fd42a
parent814e1110d51f287f5616ffc04b788f6477519560
pc-dimm: fix error messages if no slots were defined

If no slots were defined we try to allocate an empty bitmap, which
fails.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20180427120515.24067-1-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/mem/pc-dimm.c