diff options
| author | Scott Long <scottl@FreeBSD.org> | 2005-10-29 15:13:07 +0000 | 
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2005-10-29 15:13:07 +0000 | 
| commit | 66308c62701a0e539d906ba322c7a5472f13a5a4 (patch) | |
| tree | d70a4064f0db41c696dbd7033dd20fbd921da8fa | |
| parent | 087ac34ec21df583385056f8dde1e57614a54afe (diff) | |
Notes
| -rw-r--r-- | sys/dev/aac/aac.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 4cf2ecfd19ba..bd6f926cfa1f 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -2728,12 +2728,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;  	} @@ -2789,6 +2791,7 @@ aac_describe_controller(struct aac_softc *sc)  			      "\24HEATSENSOR");  	}  	aac_release_sync_fib(sc); +	mtx_unlock(&sc->aac_io_lock);  }  /*  | 
