summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_openbsdkintf.c
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2002-08-05 22:11:28 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2002-08-05 22:11:28 +0000
commit50622bca403d54eaf50c5531d185ef9c45af8c6a (patch)
tree4c7f3c69cfeea5aac4c7a59dc4fc3592547e0705 /sys/dev/raidframe/rf_openbsdkintf.c
parent39ea21095ec430a72ec819ed6ec5d895f01e2559 (diff)
Clean up hook cookies from shutdown hook.
Diffstat (limited to 'sys/dev/raidframe/rf_openbsdkintf.c')
-rw-r--r--sys/dev/raidframe/rf_openbsdkintf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c
index ca856ea232a..bb101951113 100644
--- a/sys/dev/raidframe/rf_openbsdkintf.c
+++ b/sys/dev/raidframe/rf_openbsdkintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_openbsdkintf.c,v 1.17 2002/05/28 23:38:10 tdeval Exp $ */
+/* $OpenBSD: rf_openbsdkintf.c,v 1.18 2002/08/05 22:11:27 tdeval Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -141,6 +141,7 @@
#include "rf_dagflags.h"
#include "rf_desc.h"
#include "rf_diskqueue.h"
+#include "rf_engine.h"
#include "rf_acctrace.h"
#include "rf_etimer.h"
#include "rf_general.h"
@@ -576,6 +577,9 @@ rf_shutdown_hook(arg)
/* Shutdown the system */
+ if (rf_hook_cookies != NULL && rf_hook_cookies[unit] != NULL)
+ rf_hook_cookies[unit] = NULL;
+
rf_Shutdown(raidPtr);
pool_destroy(&rs->sc_cbufpool);