Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 1999 19:45:23 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sys/kern kern_linker.c
Message-ID:  <199901230345.TAA04745@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       1999/01/22 19:45:23 PST

  Modified files:
    sys/kern             kern_linker.c 
  Log:
  Update userref handling after discussion with submitter of previous
  patch.  lf can't be dereferenced after the unload attempt, in case it
  was freed.  Instead, decrement first and back it out if the unload failed.
  This should be relatively immune to races caused by the user since the
  userref count will be zero for the duration of the actual unloading and
  will stop further kldunload attempts.
  
  Submitted by:   Ustimenko Semen <semen@iclub.nsu.ru>
  
  Revision  Changes    Path
  1.22      +4 -4      src/sys/kern/kern_linker.c

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?199901230345.TAA04745>