Commit 8e0bcc72 authored by Al Viro's avatar Al Viro

fix a leak in /proc/schedstats

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e84cb41e
......@@ -130,16 +130,11 @@ static int schedstat_open(struct inode *inode, struct file *file)
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 = {
.open = schedstat_open,
.read = seq_read,
.llseek = seq_lseek,
.release = schedstat_release,
.release = seq_release,
};
static int __init proc_schedstat_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment