diff options
author | cg <cg@FreeBSD.org> | 2001-04-10 13:52:26 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-04-10 13:52:26 +0000 |
commit | 5bd038eff8e7e672891fed388e0023d8e77286c4 (patch) | |
tree | da0ae6107f0cb92b517e4af1c0fb9720c4d2b6f4 /sys | |
parent | f9125d616d5305c3b4bd9ebe7a076e5cd997f909 (diff) | |
download | FreeBSD-src-5bd038eff8e7e672891fed388e0023d8e77286c4.zip FreeBSD-src-5bd038eff8e7e672891fed388e0023d8e77286c4.tar.gz |
lock the mutex, not the softc pointer.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/isa/ad1816.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/isa/ad1816.c b/sys/dev/sound/isa/ad1816.c index 8e6e6c8..dddc96f 100644 --- a/sys/dev/sound/isa/ad1816.c +++ b/sys/dev/sound/isa/ad1816.c @@ -88,13 +88,13 @@ static struct pcmchan_caps ad1816_caps = {4000, 55200, ad1816_fmt, 0}; static void ad1816_lock(struct ad1816_info *ad1816) { - snd_mtxlock(ad1816); + snd_mtxlock(ad1816->lock); } static void ad1816_unlock(struct ad1816_info *ad1816) { - snd_mtxunlock(ad1816); + snd_mtxunlock(ad1816->lock); } static int |