Do be so anal on detach, properly free interrupt even if no devices.
This commit is contained in:
parent
c579474cea
commit
de56c1c5d8
@ -218,7 +218,7 @@ ata_detach(device_t dev)
|
||||
if (!dev)
|
||||
return ENXIO;
|
||||
scp = device_get_softc(dev);
|
||||
if (!scp || !scp->devices)
|
||||
if (!scp)
|
||||
return ENXIO;
|
||||
|
||||
/* make sure channel is not busy SOS XXX */
|
||||
|
Loading…
x
Reference in New Issue
Block a user