ioapic: Fix error handling in realize()
commit11ab69d6e7a81c35f109a399a39d56e777f41d8a
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:34 +0000 (17 10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (19 14:51 +0200)
treee5b82966fa196a4ee2d0ed6ba3bca011a5c5001b
parentd319e05d6f24350272e7f600a43d0c0091924512
ioapic: Fix error handling in realize()

Calling error_report() in a function that takes an Error ** argument
is suspicious.  ioapic_realize() does that, and then exit()s.
Currently mostly harmless, as the device cannot be hot-plugged.

Fixes: 20fd4b7b6d9282fe0cb83601f1821f31bd257458
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181017082702.5581-11-armbru@redhat.com>
hw/intc/ioapic.c