summaryrefslogtreecommitdiff
path: root/sys/kern/subr_devstat.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-01-04 10:59:38 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-01-04 10:59:38 +0000
commit23b70c1ae21553acc791d61475afa4708977ad9c (patch)
tree84c61641d2294c356b3be9be60a905221077f4a7 /sys/kern/subr_devstat.c
parentac32f1176b41fd6230977753585bdd293b1c38d7 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_devstat.c')
-rw-r--r--sys/kern/subr_devstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 442b2df3db35..24963d56959e 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -476,7 +476,7 @@ devstat_alloc(void)
mtx_assert(&devstat_mutex, MA_NOTOWNED);
if (!once) {
- make_dev(&devstat_cdevsw, 0,
+ make_dev_credf(MAKEDEV_ETERNAL, &devstat_cdevsw, 0, NULL,
UID_ROOT, GID_WHEEL, 0400, DEVSTAT_DEVICE_NAME);
once = 1;
}