diff options
-rw-r--r-- | sys/dev/ata/ata-cbus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-cbus.c b/sys/dev/ata/ata-cbus.c index 1a39d29..98a0107 100644 --- a/sys/dev/ata/ata-cbus.c +++ b/sys/dev/ata/ata-cbus.c @@ -304,6 +304,7 @@ ata_cbuschannel_attach(device_t dev) static int ata_cbuschannel_detach(device_t dev) { + struct ata_channel *ch = device_get_softc(dev); if (!ch->attached) return (0); |