home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!crchh327!crchh7b9!minyard
- From: minyard@crchh7b9 (Corey Minyard)
- Subject: 0.99 general protection error
- Message-ID: <1992Dec14.181405.2300@bnr.ca>
- Sender: news@bnr.ca (News on crchh327)
- Nntp-Posting-Host: crchh7b9
- Organization: Bell-Northern Research, Richardson, Tx
- X-Newsreader: TIN [version 1.1 PL8]
- Date: Mon, 14 Dec 1992 18:14:05 GMT
- Lines: 24
-
- The default 0.99 kernel gave me a general protection at startup. The kernel
- was crashing in wake_up(). After some creative debugging (I added a stack
- trace-back to the exception handler) I found the bug was coming from iput().
- It turns out that the inode_wait variable was not being initialized to NULL.
-
- Make the following change the following in fs/inode.c to fix the problem.
- This is not really a diff, but you should get the idea:
- ***
- static struct inode inode_table[NR_INODE];
- static struct inode * last_inode = inode_table;
- ! static struct wait_queue * inode_wait;
-
- void inode_init(void)
- {
- ***
- static struct inode inode_table[NR_INODE];
- static struct inode * last_inode = inode_table;
- ! static struct wait_queue * inode_wait = NULL;
-
- void inode_init(void)
- ***
-
- Corey
- minyard@bnr.ca
-