summaryrefslogtreecommitdiff
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 9977e12051d..ffacbe3250b 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.270 2012/01/22 10:43:50 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.271 2012/01/22 10:46:12 jsing Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1819,6 +1819,8 @@ sr_detach(struct device *self, int flags)
if (sc->sc_shutdownhook)
shutdownhook_disestablish(sc->sc_shutdownhook);
+ softraid_disk_attach = NULL;
+
sr_shutdown(sc);
#ifndef SMALL_KERNEL