From e91e38b85bf227dce8f93f4afcb9635830424f30 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 12 Jun 2008 16:15:50 +0000 Subject: Remove silly panic when disestablish cookie doesnt exist ok art --- sys/kern/kern_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3