diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2015-11-12 22:24:08 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-11-30 19:38:44 +1100 |
commit | 7f0d763ce60fd0563cb71c85ae0f86ee71b7edcc (patch) | |
tree | 913c8db0e20149773a5c753754c128d7d49bb853 /hw/misc/milkymist-hpdmc.c | |
parent | 714487515dbe0c65d5904251e796cd3a5b3579fb (diff) |
mac_dbdma: always initialize channel field in DBDMA_channel
dbdma_from_ch() uses channel field to return the right DBDMA object.
Previous code was working if guest OS was only using registered DMA channels.
However, it lead to QEMU crashes if guest OS was using unregistered DMA channels.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/misc/milkymist-hpdmc.c')
0 files changed, 0 insertions, 0 deletions