Date: Sun, 17 Jan 1999 21:54:53 +0600 From: bp@butya.kz To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/9541: Error in kldunload function Message-ID: <E101uXN-0001yI-00@lion.butya.kz>
next in thread | raw e-mail | index | archive | help
>Number: 9541
>Category: kern
>Synopsis: Error in kldunload function
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 17 08:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Boris Popov
>Release: FreeBSD 3.0-CURRENT i386
>Organization:
none
>Environment:
FreeBSD 3.0-CURRENT i386, elf kernel
>Description:
Count of user refs to KLD decremented before call to function
linker_file_unload, so if module refuses to unload once, it will be impossible
to unload it again, even if module ready to unload.
>How-To-Repeat:
Load any filesystem module, mount corresponding file system, try
to unload. Then umount previosly mounted file system and try to unload module
again.
>Fix:
--- kern_linker.c.old Wed Jan 13 14:40:39 1999
+++ kern_linker.c Sun Jan 17 21:41:24 1999
@@ -653,8 +653,8 @@
error = EBUSY;
goto out;
}
+ if ((error = linker_file_unload(lf)) == 0)
lf->userrefs--;
- error = linker_file_unload(lf);
} else
error = ENOENT;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E101uXN-0001yI-00>
