summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/cd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 7d3bc84e03b..d31e6f80c65 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.102 2006/01/12 01:06:27 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.103 2006/01/17 20:22:22 miod Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -718,6 +718,8 @@ cdminphys(bp)
}
(*cd->sc_link->adapter->scsi_minphys)(bp);
+
+ device_unref(&cd->sc_dev);
}
int