Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295453
b: refs/heads/master
c: 3cc3e04
h: refs/heads/master
i:
  295451: e501e86
v: v3
  • Loading branch information
Eric W. Biederman committed Jan 25, 2012
1 parent f762beb commit 98fabbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 8d6ecfcc014332fd2fe933f64194160f0e3a6696
refs/heads/master: 3cc3e04636d603778d921854b84ae7bd34a349a2
8 changes: 4 additions & 4 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ static struct ctl_table *find_in_table(struct ctl_table *p, struct qstr *name)

static struct ctl_table_header *grab_header(struct inode *inode)
{
if (PROC_I(inode)->sysctl)
return sysctl_head_grab(PROC_I(inode)->sysctl);
else
return sysctl_head_next(NULL);
struct ctl_table_header *head = PROC_I(inode)->sysctl;
if (!head)
head = &root_table_header;
return sysctl_head_grab(head);
}

static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
Expand Down

0 comments on commit 98fabbd

Please sign in to comment.