Revision ea8d82a1 hw/ide/ahci.c

b/hw/ide/ahci.c
1073 1073
        dma_buf_write(p, l, &s->sg);
1074 1074
    }
1075 1075

  
1076
    /* free sglist that was created in ahci_populate_sglist() */
1077
    qemu_sglist_destroy(&s->sg);
1078

  
1076 1079
    /* update number of transferred bytes */
1077 1080
    ad->cur_cmd->status = cpu_to_le32(le32_to_cpu(ad->cur_cmd->status) + l);
1078 1081
    s->io_buffer_index += l;

Also available in: Unified diff