From 9899e35bb30f2f08183d45c61be49b49b0f60438 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 5 Jan 2004 20:23:53 +0000 Subject: [PATCH] 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 , esmith --- sys/dev/sound/driver/sbc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/driver/sbc/Makefile b/sys/dev/sound/driver/sbc/Makefile index 620ae6ff45..0111f595c3 100644 --- a/sys/dev/sound/driver/sbc/Makefile +++ b/sys/dev/sound/driver/sbc/Makefile @@ -1,9 +1,10 @@ # $FreeBSD: src/sys/modules/sound/driver/sbc/Makefile,v 1.1.2.3 2002/12/01 09:01:08 nyan Exp $ -# $DragonFly: src/sys/dev/sound/driver/sbc/Makefile,v 1.2 2003/06/17 04:28:46 dillon Exp $ +# $DragonFly: src/sys/dev/sound/driver/sbc/Makefile,v 1.3 2004/01/05 20:23:53 dillon Exp $ .PATH: ${.CURDIR}/../../../../dev/sound/isa KMOD = snd_sbc SRCS = device_if.h bus_if.h isa_if.h pci_if.h SRCS += sbc.c +KMODDEPS = snd_pcm .include -- 2.41.0