Date: Mon, 6 Oct 2003 10:00:36 -0700 (PDT) From: Jan Srzednicki <w@expro.pl> To: freebsd-emulation@FreeBSD.org Subject: Re: ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script Message-ID: <200310061700.h96H0aup051956@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/57465; it has been noted by GNATS. From: Jan Srzednicki <w@expro.pl> To: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script Date: Mon, 6 Oct 2003 18:51:14 +0200 On Thu, Oct 02, 2003 at 10:24:41AM +0200, Philipp Mergenthaler wrote: > The bug is that the module, on unloading, calls destroy_dev() twice > for its device. Doing this causes a panic. > > Fix: > --- ports/emulators/rtc/files/rtc.c_orig Thu Oct 2 10:20:17 2003 > +++ ports/emulators/rtc/files/rtc.c Thu Oct 2 09:58:13 2003 > @@ -168,7 +168,6 @@ > if (sc->var.flags.opened) { > return EBUSY; > } > - destroy_dev(sc->dev); > FREE(sc, M_DEVBUF); > return error; > } This one seems to work fine. Thanks. ;) -- Jan 'Winfried' Srzednicki w@expro.pl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310061700.h96H0aup051956>