summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-cd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-02-12 13:21:51 +0000
committersos <sos@FreeBSD.org>2002-02-12 13:21:51 +0000
commit5eb6e3401041b59125f797a03291b0487b8f5422 (patch)
tree5d03820ed8c164e56dc1b0490641cbeb46287faf /sys/dev/ata/atapi-cd.c
parentc53dc644164c836f50fb434d0d9cc9ee4da682bc (diff)
downloadFreeBSD-src-5eb6e3401041b59125f797a03291b0487b8f5422.zip
FreeBSD-src-5eb6e3401041b59125f797a03291b0487b8f5422.tar.gz
Fix buglets in the ATAPI resume code.
This also fixes an old bug where some ATAPI devices went into funny mode on an 'atacontrol reinit' command.
Diffstat (limited to 'sys/dev/ata/atapi-cd.c')
-rw-r--r--sys/dev/ata/atapi-cd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index 3486b0a..440c24d 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -220,6 +220,7 @@ acddetach(struct ata_device *atadev)
TAILQ_REMOVE(&cdp->dev_list, entry, chain);
free(entry, M_ACD);
}
+ destroy_dev(cdp->dev);
devstat_remove_entry(cdp->stats);
free(cdp->stats, M_ACD);
ata_free_name(atadev);
OpenPOWER on IntegriCloud