ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script
Philipp Mergenthaler
philipp.mergenthaler at stud.uni-karlsruhe.de
Thu Oct 2 08:30:06 UTC 2003
The following reply was made to PR ports/57465; it has been noted by GNATS.
From: Philipp Mergenthaler <philipp.mergenthaler at stud.uni-karlsruhe.de>
To: freebsd-gnats-submit at freebsd.org, w at expro.pl
Cc:
Subject: Re: ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script
Date: Thu, 2 Oct 2003 10:24:41 +0200
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;
}
More information about the freebsd-ports-bugs
mailing list