ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script

Jan Srzednicki w at expro.pl
Mon Oct 6 10:00:37 PDT 2003


The following reply was made to PR ports/57465; it has been noted by GNATS.

From: Jan Srzednicki <w at expro.pl>
To: Philipp Mergenthaler <philipp.mergenthaler at stud.uni-karlsruhe.de>
Cc: freebsd-gnats-submit at 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 at expro.pl
 


More information about the freebsd-emulation mailing list