diff options
author | sos <sos@FreeBSD.org> | 2002-02-12 13:21:51 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-02-12 13:21:51 +0000 |
commit | 5eb6e3401041b59125f797a03291b0487b8f5422 (patch) | |
tree | 5d03820ed8c164e56dc1b0490641cbeb46287faf /sys/dev/ata/atapi-cd.c | |
parent | c53dc644164c836f50fb434d0d9cc9ee4da682bc (diff) | |
download | FreeBSD-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.c | 1 |
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); |