cvs commit: src/sys/kern kern_linker.c

John Polstra jdp at FreeBSD.org
Wed Oct 19 13:40:31 PDT 2005


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


More information about the cvs-src mailing list