summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ciss/ciss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 281b308..522afa5 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -521,11 +521,13 @@ ciss_shutdown(device_t dev)
debug_called(1);
+ mtx_lock(&sc->ciss_mtx);
/* flush adapter cache */
ciss_flush_adapter(sc);
if (sc->ciss_soft_reset)
ciss_soft_reset(sc);
+ mtx_unlock(&sc->ciss_mtx);
return(0);
}
OpenPOWER on IntegriCloud