lkml.org 
[lkml]   [1999]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] bug in unregister_proc_table
Hi,

This bothered me for some time now and to me it seems like
a bug in the above mentioned function. I won't bother
explaining, it is fairly obvious.

--- virgin/kernel/sysctl.c Sat Jan 9 07:54:16 1999
+++ linux/kernel/sysctl.c Tue Feb 2 18:47:43 1999
@@ -559,8 +559,8 @@
unregister_proc_table(table->child, de);
}
/* Don't unregister proc directories which still have
- entries... */
- if (!((de->mode & S_IFDIR) && de->subdir)) {
+ entries or are still being used... */
+ if (!((de->mode & S_IFDIR) && de->subdir) && !de->count)
{
proc_unregister(root, de->low_ino);
table->de = NULL;
kfree(de);
--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* "The only thing that interferes with my
* learning is my education." -- A. Einstein

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.020 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site