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:
parent
4c32f5d217
commit
21c3b31ead
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44617
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user