s390x: fix error propagation in kvm-flic's realize
commitf62f210943f8290bc0a060f4090046841815a046
authorHalil Pasic <pasic@linux.vnet.ibm.com>
Fri, 23 Jun 2017 16:57:37 +0000 (23 18:57 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 5 Jul 2017 17:44:23 +0000 (5 19:44 +0200)
tree251093cf0ed9a983cdbe4e8bfd8d602fd03041af
parent1728cff2abef27aa00bc7e5f6f73c13b7bd256cb
s390x: fix error propagation in kvm-flic's realize

From the moment it was introduced by commit a2875e6f98 ("s390x/kvm:
implement floating-interrupt controller device", 2013-07-16) the kvm-flic
is not making realize fail properly in case it's impossible to create the
KVM device which basically serves as a backend and is absolutely
essential for having an operational kvm-flic.

Let's fix this by making sure we do proper error propagation in realize.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Fixes: a2875e6f98 "s390x/kvm: implement floating-interrupt controller device"
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Reviewed-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/intc/s390_flic_kvm.c