PPC: Get rid of segfaults in DBDMA emulation
authorAlexander Graf <agraf@suse.de>
Tue, 9 Feb 2010 16:37:07 +0000 (17:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 14 Feb 2010 14:10:54 +0000 (16:10 +0200)
commita9ceb76d55abfed9426a819024aa3a4b87266c9f
tree4049ddb820ce5282fd81081f481cb26874f9eac2
parentdffc07ca92bbc21c02850242104cb77a53335325
PPC: Get rid of segfaults in DBDMA emulation

While trying to find the right channel number for the DBDMA emulation I
stumbled across segmentation faults that were purely triggered by the guest.

The guest should never have the possiblity to segfault us, so let's check
all indirect function calls on a channel, so the code even works for channels
that have not been reserved.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mac_dbdma.c