diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2001-07-11 05:16:27 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2001-07-11 05:16:27 +0000 |
commit | e30b87b534d621a29d20589c8eac8c62c8cc2366 (patch) | |
tree | 8556328838b4b329196e1fe18c100a731af2ff28 | |
parent | 0ef36920de3bcc0f8591af5fcc9157be26dcb38a (diff) | |
download | src-e30b87b534d621a29d20589c8eac8c62c8cc2366.tar.gz src-e30b87b534d621a29d20589c8eac8c62c8cc2366.zip |
Call disk_destroy in cdcleanup() as appropriate.
PR: 24596
Reviewed by: ken
Notes
Notes:
svn path=/head/; revision=79575
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index ca6122cc429c..ded1d1acaccd 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -487,6 +487,9 @@ cdcleanup(struct cam_periph *periph) } devstat_remove_entry(&softc->device_stats); cam_extend_release(cdperiphs, periph->unit_number); + if (softc->disk.d_dev) { + disk_destroy(softc->disk.d_dev); + } free(softc, M_DEVBUF); splx(s); } |