From owner-cvs-src@FreeBSD.ORG Wed Oct 19 20:40:31 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31AE916A41F; Wed, 19 Oct 2005 20:40:31 +0000 (GMT) (envelope-from jdp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE47043D68; Wed, 19 Oct 2005 20:40:30 +0000 (GMT) (envelope-from jdp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9JKeUJa017574; Wed, 19 Oct 2005 20:40:30 GMT (envelope-from jdp@repoman.freebsd.org) Received: (from jdp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9JKeUs5017573; Wed, 19 Oct 2005 20:40:30 GMT (envelope-from jdp) Message-Id: <200510192040.j9JKeUs5017573@repoman.freebsd.org> From: John Polstra Date: Wed, 19 Oct 2005 20:40:30 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_linker.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2005 20:40:31 -0000 jdp 2005-10-19 20:40:30 UTC FreeBSD src repository Modified files: sys/kern kern_linker.c Log: Fix a bug in the kernel module runtime linker that made it impossible to unload the usb.ko module after boot if it was originally preloaded from "/boot/loader.conf". When processing preloaded modules, the linker erroneously added self-dependencies the each module's reference count. That prevented usb.ko's reference count from ever going to 0, so it could not be unloaded. Sponsored by Isilon Systems. Reviewed by: pjd, peter MFC after: 1 week Revision Changes Path 1.118 +3 -0 src/sys/kern/kern_linker.c