summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-10-10 20:13:31 +0000
committerscottl <scottl@FreeBSD.org>2005-10-10 20:13:31 +0000
commit2dc99f1bfba811c45838d9ab57dcfd1dd994e605 (patch)
tree266267cbc7bedb090d5c835de716130c0120ca6d /sys/dev/aac
parent32945bd185730b0600e04c5c166531c338d33cc2 (diff)
downloadFreeBSD-src-2dc99f1bfba811c45838d9ab57dcfd1dd994e605.zip
FreeBSD-src-2dc99f1bfba811c45838d9ab57dcfd1dd994e605.tar.gz
Fix a missing set of lock operations.
Submitted by: green PR: 87191
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 0aa9b05..6ee6d20 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);
}
/*
OpenPOWER on IntegriCloud