diff options
| author | Alexander Graf <agraf@suse.de> | 2013-04-30 15:02:16 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-30 09:40:11 -0500 |
| commit | 9ab880b3a2f4b80bd5d8b18a312b3afed65dc036 (patch) | |
| tree | 1b06a72abee6ccbffdaa2d875f7d4664201ea73d /hw/core/qdev.c | |
| parent | b7da6c60814a5c8703e9fa0d943ec3240e9d94ab (diff) | |
| download | focaccia-qemu-9ab880b3a2f4b80bd5d8b18a312b3afed65dc036.tar.gz focaccia-qemu-9ab880b3a2f4b80bd5d8b18a312b3afed65dc036.zip | |
QOM: Fail casts for unknown types
When we try to cast an object to an unknown type, fail the cast. Today we would simply run into an assert(). This fixes a bug on qemu-system-s390x for me that gets triggered by the audio code looking for PCI and ISA buses. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1367326936-28539-1-git-send-email-agraf@suse.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions