summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-10-24 18:36:22 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-10-24 18:36:22 +0000
commit52f7f91977d30819f9d63327961277523929a76c (patch)
treebacacc1c177b339fb26173de3be76e862ab4adea
parent913e961fb52145dbc9c712e56e7e2e53a8139082 (diff)
Remove panic if polling thread can not be created.
ok jordan@
-rw-r--r--sys/dev/ipmi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index be34cc4c098..36971d6d612 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.17 2005/10/21 16:44:24 deraadt Exp $ */
+/* $OpenBSD: ipmi.c,v 1.18 2005/10/24 18:36:21 marco Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -1561,8 +1561,11 @@ ipmi_create_thread(void *arg)
struct ipmi_softc *sc = arg;
if (kthread_create(ipmi_poll_thread, sc->sc_thread, NULL,
- DEVNAME(sc)) != 0)
- panic("ipmi thread");
+ DEVNAME(sc)) != 0) {
+ printf("%s: unable to create polling thread, ipmi disabled\n",
+ DEVNAME(sc));
+ return;
+ }
}
int