ahci: free irqs array
Each irq is referenced by the IDEBus in ide_init2(), thus we can free
the no longer used array.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
(cherry picked from commit 9d324b0e67
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
3d34297e9c
commit
94c8340d93
@ -1475,6 +1475,7 @@ void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
|
|||||||
ad->port.dma->ops = &ahci_dma_ops;
|
ad->port.dma->ops = &ahci_dma_ops;
|
||||||
ide_register_restart_cb(&ad->port);
|
ide_register_restart_cb(&ad->port);
|
||||||
}
|
}
|
||||||
|
g_free(irqs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ahci_uninit(AHCIState *s)
|
void ahci_uninit(AHCIState *s)
|
||||||
|
Loading…
Reference in New Issue
Block a user