summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2014-11-08 13:36:51 +0000
committerjasper <jasper@openbsd.org>2014-11-08 13:36:51 +0000
commitbd2c6f0110c0a9e0d9e7a5b8122931b0a6636a5b (patch)
treee337f2cd1dcef34ba3c5f55845c2f5007c20af5f
parentTwo improvements to reflow from Balazs Kezes: (diff)
downloadwireguard-openbsd-bd2c6f0110c0a9e0d9e7a5b8122931b0a6636a5b.tar.xz
wireguard-openbsd-bd2c6f0110c0a9e0d9e7a5b8122931b0a6636a5b.zip
some systems install sensors where numbering introduces a gap which
falsely triggered the added panic. revert the panic for now while a better solution is being worked on as reported by Bjorn Ketelaars on misc@ via jsing@
-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 0914bb0b7c3..016d10761a6 100644
--- a/sys/kern/kern_sensors.c
+++ b/sys/kern/kern_sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sensors.c,v 1.31 2014/11/04 18:29:32 jasper Exp $ */
+/* $OpenBSD: kern_sensors.c,v 1.32 2014/11/08 13:36:51 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)
- panic("sensor installed twice");
+ break;
sensdev->num = v->num + 1;
SLIST_INSERT_AFTER(v, sensdev, list);
}