]> git.proxmox.com Git - mirror_qemu.git/commit
hw/audio: Fix crashes when devices are used on ISA bus without DMA
authorThomas Huth <thuth@redhat.com>
Fri, 16 Mar 2018 09:51:31 +0000 (10:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Mar 2018 12:37:13 +0000 (14:37 +0200)
commitc9073238fcb647644b329705ad54734ad1f0b1a3
tree2fffdfbc57aeae407c4fce428ddbcf7ce3a15f16
parentb3da551389c86ce214d5418c174134c3e1c838ab
hw/audio: Fix crashes when devices are used on ISA bus without DMA

The cs4231a, gus and sb16 sound cards crash QEMU when the user tries
to instantiate them on a machine with DMA-less ISA bus (for example
with "qemu-system-mips64el -M mips -device sb16"). Add proper checks
to the realize functions to avoid the crashes.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1521193892-15552-4-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/audio/cs4231a.c
hw/audio/gus.c
hw/audio/sb16.c
scripts/device-crash-test