From owner-freebsd-current Tue Jan 19 04:25:20 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA00500 for freebsd-current-outgoing; Tue, 19 Jan 1999 04:25:20 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA00473 for ; Tue, 19 Jan 1999 04:25:12 -0800 (PST) (envelope-from semen@iclub.nsu.ru) Received: from localhost (semen@localhost) by iclub.nsu.ru (8.8.8/8.8.5) with SMTP id SAA15696 for ; Tue, 19 Jan 1999 18:25:00 +0600 (NS) Date: Tue, 19 Jan 1999 18:24:59 +0600 (NS) From: Ustimenko Semen To: freebsd-current@FreeBSD.ORG Subject: Re: sys/kern/kern_linker.c patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry for self reply. Patch isn't good enougth:-) becouse linker_file_unload() deallocates lf structure's memory... so lf->userrefs-- may cause page fault or whatever else. (I wonder how that didn't happened) Look at this one: *** kern_linker.c.orig Mon Jan 18 17:22:39 1999 --- kern_linker.c Mon Jan 18 18:14:28 1999 *************** *** 655,660 **** --- 655,662 ---- } lf->userrefs--; error = linker_file_unload(lf); + if(error) + lf->userrefs++; } else error = ENOENT; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message