summaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2005-10-10 20:13:31 +0000
committerScott Long <scottl@FreeBSD.org>2005-10-10 20:13:31 +0000
commit81b3da088a026fcacbf41f11c1e93e2548bb2b5f (patch)
tree266267cbc7bedb090d5c835de716130c0120ca6d /sys/dev/aac
parent59b8fc153595712d49dbcb915ab0a337f1127534 (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 0aa9b05b0968..6ee6d2021575 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -2715,12 +2715,14 @@ aac_describe_controller(struct aac_softc *sc)
debug_called(2);
+ mtx_lock(&sc->aac_io_lock);
aac_alloc_sync_fib(sc, &fib);
fib->data[0] = 0;
if (aac_sync_fib(sc, RequestAdapterInfo, 0, fib, 1)) {
device_printf(sc->aac_dev, "RequestAdapterInfo failed\n");
aac_release_sync_fib(sc);
+ mtx_unlock(&sc->aac_io_lock);
return;
}
@@ -2776,6 +2778,7 @@ aac_describe_controller(struct aac_softc *sc)
"\24HEATSENSOR");
}
aac_release_sync_fib(sc);
+ mtx_unlock(&sc->aac_io_lock);
}
/*