For some uniformity move ahci_ch_init() call under the lock.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks
This commit is contained in:
parent
2d4c4c8dc7
commit
3e78ee6328
@ -668,8 +668,8 @@ ahci_ch_attach(device_t dev)
|
||||
return (ENXIO);
|
||||
ahci_dmainit(dev);
|
||||
ahci_slotsalloc(dev);
|
||||
ahci_ch_init(dev);
|
||||
mtx_lock(&ch->mtx);
|
||||
ahci_ch_init(dev);
|
||||
rid = ATA_IRQ_RID;
|
||||
if (!(ch->r_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ,
|
||||
&rid, RF_SHAREABLE | RF_ACTIVE))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user