Subject: kern/12037: Call entry(stat) of LKM does not work.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <satou-t@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 01/24/2001 02:05:16
>Number: 12037
>Category: kern
>Synopsis: Call entry(stat) of LKM does not work.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 24 02:08:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: SATOU Takashi
>Release: 1.5
>Organization:
The University of Electro-Communications
>Environment:
NetBSD kusatsu 1.5 NetBSD 1.5 (KUSATSU) #9: Wed Jan 24 15:58:06 JST 2001 satou-t@kusatsu:/usr/src/sys/arch/i386/compile/KUSATSU i386
>Description:
LKM's "stat" function in "DISPATCH" is not called
under its respective circumstances.(e.g. modstat(8))
>How-To-Repeat:
>Fix:
*** /usr/src/sys/kern/kern_lkm.c Tue Mar 28 15:26:22 2000
--- kern_lkm.c Wed Jan 24 15:49:25 2001
***************
*** 526,531 ****
--- 526,536 ----
break;
}
+ error = (*(curp->entry))(curp, LKM_E_STAT, curp->ver);
+ if (error) {
+ break;
+ }
+
/*
* Copy out stat information for this module...
*/
>Release-Note:
>Audit-Trail:
>Unformatted: