When you attempt to kldload snd_sb16 and then unload it, the system crashes.
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jan 2004 20:23:53 +0000 (20:23 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jan 2004 20:23:53 +0000 (20:23 +0000)
commit9899e35bb30f2f08183d45c61be49b49b0f60438
treeeadb7ac1d430466e26b0aedd0bf55c17075a505c
parent0a62b1be511c831bf032027d5bd101cedf1f45c7
When you attempt to kldload snd_sb16 and then unload it, the system crashes.

the problem turns out to be in snd_pcm.  snd_sbc needs a dependancy on
snd_pcm.  Without it, if you load a module that depends on both snd_sbc and
snd_pcm (like snd_sb16), then later try to unload it, the system may
unload snd_pcm before snd_sbc causing a panic.

Reported-by: Galen Sampson <galen_sampson@yahoo.com>, esmith <esmith@patmedia.net>
sys/dev/sound/driver/sbc/Makefile