diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-15 13:29:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-29 15:41:45 -0400 |
commit | 8e0bcc722289275d5586a08b0d33b737bac2836e (patch) | |
tree | 92ca4db5195d9a7e4614905f081b65972bd0be72 | |
parent | e84cb41eb008fb42b357c55329c345f9a0375237 (diff) | |
download | blackbird-op-linux-8e0bcc722289275d5586a08b0d33b737bac2836e.tar.gz blackbird-op-linux-8e0bcc722289275d5586a08b0d33b737bac2836e.zip |
fix a leak in /proc/schedstats
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-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 e036eda1a9c9..da98af347e8b 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) |