From: Al Viro Date: Mon, 15 Apr 2013 17:29:15 +0000 (-0400) Subject: fix a leak in /proc/schedstats X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8e0bcc722289275d5586a08b0d33b737bac2836e;p=openwrt%2Fstaging%2Fblogic.git fix a leak in /proc/schedstats Signed-off-by: Al Viro --- 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)