Revision c65bcef3 hw/ide/macio.c

b/hw/ide/macio.c
76 76

  
77 77
    s->io_buffer_size = io->len;
78 78

  
79
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1);
79
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1, NULL);
80 80
    qemu_sglist_add(&s->sg, io->addr, io->len);
81 81
    io->addr += io->len;
82 82
    io->len = 0;
......
133 133
    s->io_buffer_index = 0;
134 134
    s->io_buffer_size = io->len;
135 135

  
136
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1);
136
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1, NULL);
137 137
    qemu_sglist_add(&s->sg, io->addr, io->len);
138 138
    io->addr += io->len;
139 139
    io->len = 0;

Also available in: Unified diff