MSI: Robust resource release
commit45fe15c25a5c9feea6e0f78434f5e9f632de9d94
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 2 May 2011 18:00:47 +0000 (2 20:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 5 May 2011 13:10:08 +0000 (5 16:10 +0300)
tree0749b7fc7f98200e3c42d213b9916be135195151
parent072476ea08dcffe89b0bd6e2053f01dd89c54861
MSI: Robust resource release

msi_init may fail, so we need to check on uninit if the cap was
actually installed. This also avoids that the users need to check.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ide/ich.c
hw/intel-hda.c
hw/msi.c