diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-04-05 18:02:33 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-04-05 18:02:33 +0000 |
| commit | 111ab6f7edf587da39633a2e624eb8b06eac0f63 (patch) | |
| tree | 382caf25243c4dc283496f19817f097d6995d857 /sys/dev/ata | |
| parent | de4dc9595e85847e8a127038e46cb6031cc0690e (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index b4490eb57e40..5caa2f033160 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -215,7 +215,8 @@ ata_detach(device_t dev) struct ata_channel *ch; int s; - if (!dev || !(ch = device_get_softc(dev))) + if (!dev || !(ch = device_get_softc(dev)) || + !ch->r_io || !ch->r_altio || !ch->r_irq) return ENXIO; /* make sure channel is not busy */ |
