From owner-cvs-all Fri Jan 22 19:45:24 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA05766 for cvs-all-outgoing; Fri, 22 Jan 1999 19:45:24 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA05761; Fri, 22 Jan 1999 19:45:22 -0800 (PST) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA04745; Fri, 22 Jan 1999 19:45:23 -0800 (PST) Date: Fri, 22 Jan 1999 19:45:23 -0800 (PST) Message-Id: <199901230345.TAA04745@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/kern kern_linker.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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 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