diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-15 17:29:15 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-29 19:41:45 (GMT) |
commit | 8e0bcc722289275d5586a08b0d33b737bac2836e (patch) | |
tree | 92ca4db5195d9a7e4614905f081b65972bd0be72 /kernel/sched | |
parent | e84cb41eb008fb42b357c55329c345f9a0375237 (diff) | |
download | linux-fsl-qoriq-8e0bcc722289275d5586a08b0d33b737bac2836e.tar.xz |
fix a leak in /proc/schedstats
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/stats.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/sched/stats.c b/kernel/sched/stats.c index e036eda..da98af3 100644 --- a/kernel/sched/stats.c +++ b/kernel/sched/stats.c @@ -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) |