Call disk_destroy in cdcleanup() as appropriate.
PR: 24596 Reviewed by: ken
This commit is contained in:
parent
0ef36920de
commit
e30b87b534
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user