mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
fix a leak in /proc/schedstats
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e84cb41eb0
commit
8e0bcc7222
1 changed files with 1 additions and 6 deletions
|
@ -130,16 +130,11 @@ static int schedstat_open(struct inode *inode, struct file *file)
|
||||||
return seq_open(file, &schedstat_sops);
|
return seq_open(file, &schedstat_sops);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int schedstat_release(struct inode *inode, struct file *file)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct file_operations proc_schedstat_operations = {
|
static const struct file_operations proc_schedstat_operations = {
|
||||||
.open = schedstat_open,
|
.open = schedstat_open,
|
||||||
.read = seq_read,
|
.read = seq_read,
|
||||||
.llseek = seq_lseek,
|
.llseek = seq_lseek,
|
||||||
.release = schedstat_release,
|
.release = seq_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init proc_schedstat_init(void)
|
static int __init proc_schedstat_init(void)
|
||||||
|
|
Loading…
Reference in a new issue