Re: [Qemu-devel] [PATCH] ahci: Fix crashes on duplicate BH registration

2011-05-10 Thread Kevin Wolf
Am 09.05.2011 17:48, schrieb Jan Kiszka: > If ahci_dma_set_inactive is called a while there is still a pending BH > from a previous run, we will crash on the second run of > ahci_check_cmd_bh as it overwrites AHCIDevice::check_bh. Avoid this > broken and redundant duplicate registration. > > Signe

[Qemu-devel] [PATCH] ahci: Fix crashes on duplicate BH registration

2011-05-09 Thread Jan Kiszka
If ahci_dma_set_inactive is called a while there is still a pending BH from a previous run, we will crash on the second run of ahci_check_cmd_bh as it overwrites AHCIDevice::check_bh. Avoid this broken and redundant duplicate registration. Signed-off-by: Jan Kiszka --- hw/ide/ahci.c |8 +