1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-20 15:43:16 +00:00

Don't forget to remove devstat entries when taking

down the CCD device.
This commit is contained in:
Matt Jacob 1999-03-10 00:41:27 +00:00
parent 4c32f5d217
commit 21c3b31ead
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44617
2 changed files with 12 additions and 2 deletions

View File

@ -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);

View File

@ -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);