diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 1999-12-30 02:32:13 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 1999-12-30 02:32:13 +0000 |
| commit | b6fd7c61881bdf8e3f8180caa0103d71181cb3b0 (patch) | |
| tree | e7bffbfc02d30825509c5414ae85c11e454a70f9 /sys | |
| parent | 16750aa22ea7f4d3ff2e27f6a7d59f737a385bc4 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/cam/scsi/scsi_target.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index f5f577f839493..85e45dde80ae9 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -296,7 +296,7 @@ targenlun(struct cam_periph *periph) status = immed_ccb.ccb_h.status; if (status != CAM_REQ_CMP) { xpt_print_path(periph->path); - printf("targenlun - Enable Lun Rejected for status 0x%x\n", + printf("targenlun - Enable Lun Rejected with status 0x%x\n", status); return (status); } @@ -580,6 +580,9 @@ targopen(dev_t dev, int flags, int fmt, struct proc *p) break; } cam_periph_unlock(periph); + if (error) { + cam_periph_release(periph); + } return (error); } |
