summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sensors.c b/sys/kern/kern_sensors.c
index 22855ed4886..0914bb0b7c3 100644
--- a/sys/kern/kern_sensors.c
+++ b/sys/kern/kern_sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sensors.c,v 1.30 2014/11/01 23:58:28 tedu Exp $ */
+/* $OpenBSD: kern_sensors.c,v 1.31 2014/11/04 18:29:32 jasper Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -50,7 +50,7 @@ sensordev_install(struct ksensordev *sensdev)
for (v = SLIST_FIRST(&sensordev_list);
(nv = SLIST_NEXT(v, list)) != NULL; v = nv)
if (nv->num - v->num > 1)
- break;
+ panic("sensor installed twice");
sensdev->num = v->num + 1;
SLIST_INSERT_AFTER(v, sensdev, list);
}