Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106354
b: refs/heads/master
c: 9043476
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jul 27, 2008
1 parent 1145aa6 commit 9c38466
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 236 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae7edecc9b8810770a8e5cb9a466ea4bdcfa8401
refs/heads/master: 9043476f726802f4b00c96d0c4f418dde48d1304
5 changes: 5 additions & 0 deletions trunk/fs/proc/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/sysctl.h>

#include <asm/system.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -65,6 +66,8 @@ static void proc_delete_inode(struct inode *inode)
module_put(de->owner);
de_put(de);
}
if (PROC_I(inode)->sysctl)
sysctl_head_put(PROC_I(inode)->sysctl);
clear_inode(inode);
}

Expand All @@ -84,6 +87,8 @@ static struct inode *proc_alloc_inode(struct super_block *sb)
ei->fd = 0;
ei->op.proc_get_link = NULL;
ei->pde = NULL;
ei->sysctl = NULL;
ei->sysctl_entry = NULL;
inode = &ei->vfs_inode;
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
return inode;
Expand Down
Loading

0 comments on commit 9c38466

Please sign in to comment.