summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd/ccd.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1999-03-10 00:41:27 +0000
committermjacob <mjacob@FreeBSD.org>1999-03-10 00:41:27 +0000
commit3c0b19774e39e0a7862a8a1b65ee82804ba9c163 (patch)
treec5fe6a45536c65b7f5243052be84b9cf8b32374e /sys/dev/ccd/ccd.c
parentd5ccc1beb2979ee9239e2c2d35178d73143a7763 (diff)
downloadFreeBSD-src-3c0b19774e39e0a7862a8a1b65ee82804ba9c163.zip
FreeBSD-src-3c0b19774e39e0a7862a8a1b65ee82804ba9c163.tar.gz
Don't forget to remove devstat entries when taking
down the CCD device.
Diffstat (limited to 'sys/dev/ccd/ccd.c')
-rw-r--r--sys/dev/ccd/ccd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index f2666be..c61f5d0 100644
--- a/sys/dev/ccd/ccd.c
+++ b/sys/dev/ccd/ccd.c
@@ -1,4 +1,4 @@
-/* $Id: ccd.c,v 1.40 1999/02/10 00:03:23 ken Exp $ */
+/* $Id: ccd.c,v 1.41 1999/02/18 21:11:53 ken Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@@ -1236,6 +1236,11 @@ ccdioctl(dev, cmd, data, flag, p)
ccd.ccd_dk = -1;
bcopy(&ccd, &ccddevs[unit], sizeof(ccd));
+ /*
+ * And remove the devstat entry.
+ */
+ devstat_remove_entry(&cs->device_stats);
+
/* This must be atomic. */
s = splhigh();
ccdunlock(cs);
OpenPOWER on IntegriCloud