Date: Wed, 03 May 2000 01:39:35 +0100 From: Paul Richards <paul@originative.co.uk> To: Peter Wemm <peter@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_bus.c Message-ID: <390F7547.C0E7E546@originative.co.uk> References: <200004291324.GAA66509@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote: > > peter 2000/04/29 06:24:36 PDT > > Modified files: > sys/kern subr_bus.c > Log: > The newer module dependency code exposes an apparent bug in the > bus/driver/kobj system. I am not 100% sure that this is the correct fix, > but it is harmless and does seem to solve the problem. At worst, it could > cause a tiny memory leak at unload time - this is better than a free(NULL) > and subsequent panic. I'm waiting for comments from Doug about this. > This may yet be backed out and fixed differently. > > The change itself is to increment the reference count on drivers in one > case where it appears to have been missed. When everything is unloaded, > kobj_class_free() was being called twice in some cases, and panicing the > second time. Ahh, that's what was causing my panics unloading klds. Paul Richards. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?390F7547.C0E7E546>