Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86327
b: refs/heads/master
c: d6643d1
h: refs/heads/master
i:
  86325: a3aab72
  86323: 3754001
  86319: c3039fb
v: v3
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Feb 25, 2008
1 parent dd01f95 commit acdf6eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: ae0027869db7d28563cd783865fab04ffd18419c
refs/heads/master: d6643d12cb0885d06a1491b16c1476abcbd53d40
11 changes: 10 additions & 1 deletion trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,15 @@ static int lstats_open(struct inode *inode, struct file *file)
return ret;
}

static int lstats_release(struct inode *inode, struct file *file)
{
struct seq_file *m = file->private_data;
struct task_struct *task = m->private;

put_task_struct(task);
return single_release(inode, file);
}

static ssize_t lstats_write(struct file *file, const char __user *buf,
size_t count, loff_t *offs)
{
Expand All @@ -378,7 +387,7 @@ static const struct file_operations proc_lstats_operations = {
.read = seq_read,
.write = lstats_write,
.llseek = seq_lseek,
.release = single_release,
.release = lstats_release,
};

#endif
Expand Down

0 comments on commit acdf6eb

Please sign in to comment.