summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2008-06-12 16:15:50 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2008-06-12 16:15:50 +0000
commite91e38b85bf227dce8f93f4afcb9635830424f30 (patch)
tree47d46d0a1b018e19e98b32d61ef80fbc63318ebf
parente728132bf6e5fed5ff16ce9474568a16419c9641 (diff)
Remove silly panic when disestablish cookie doesnt exist
ok art
-rw-r--r--sys/kern/kern_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 023a5867f25..5f7cfb6f0e6 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_subr.c,v 1.31 2007/05/16 17:27:30 art Exp $ */
+/* $OpenBSD: kern_subr.c,v 1.32 2008/06/12 16:15:49 marco Exp $ */
/* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */
/*
@@ -217,7 +217,7 @@ hook_disestablish(struct hook_desc_head *head, void *vhook)
if (hdp == vhook)
break;
if (hdp == NULL)
- panic("hook_disestablish: hook not established");
+ return;
#endif
hdp = vhook;
TAILQ_REMOVE(head, hdp, hd_list);