Revision 4d29b50a hw/ide/ahci.c

b/hw/ide/ahci.c
1066 1066

  
1067 1067
    ad->dma_cb = NULL;
1068 1068

  
1069
    /* maybe we still have something to process, check later */
1070
    ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
1071
    qemu_bh_schedule(ad->check_bh);
1069
    if (!ad->check_bh) {
1070
        /* maybe we still have something to process, check later */
1071
        ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
1072
        qemu_bh_schedule(ad->check_bh);
1073
    }
1072 1074

  
1073 1075
    return 0;
1074 1076
}

Also available in: Unified diff