aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2000-10-30 07:03:00 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2000-10-30 07:03:00 +0000
commit2906da29dc6c172a8a117b55053c829959fbe960 (patch)
tree05b1cb99bf53256cd501ee53ce53dba764bc5a1a /sys/cam
parentf3b7b7b4ae9a2e05097f6b726de350abbf6025a9 (diff)
Notes
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_cd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index a972e845c0e9..8025560b747e 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -254,7 +254,7 @@ static struct cdevsw cd_cdevsw = {
/* open */ cdopen,
/* close */ cdclose,
/* read */ physread,
- /* write */ nowrite,
+ /* write */ physwrite,
/* ioctl */ cdioctl,
/* poll */ nopoll,
/* mmap */ nommap,
@@ -628,7 +628,7 @@ cdregister(struct cam_periph *periph, void *arg)
DEVSTAT_TYPE_CDROM | DEVSTAT_TYPE_IF_SCSI,
DEVSTAT_PRIORITY_CD);
disk_create(periph->unit_number, &softc->disk,
- DSO_NOLABELS | DSO_ONESLICE,
+ DSO_ONESLICE | DSO_COMPATLABEL,
&cd_cdevsw, &cddisk_cdevsw);
/*
@@ -727,6 +727,7 @@ cdregister(struct cam_periph *periph, void *arg)
STAILQ_INSERT_TAIL(&nchanger->chluns,
nsoftc,changer_links);
}
+ xpt_free_path(path);
} else if (status == CAM_REQ_CMP)
xpt_free_path(path);
else {
@@ -833,6 +834,7 @@ cdregister(struct cam_periph *periph, void *arg)
STAILQ_INSERT_TAIL(&nchanger->chluns,
nsoftc, changer_links);
+ xpt_free_path(path);
} else if (status == CAM_REQ_CMP)
xpt_free_path(path);
else {