projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e84cb41
)
fix a leak in /proc/schedstats
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 15 Apr 2013 17:29:15 +0000
(13:29 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 29 Apr 2013 19:41:45 +0000
(15:41 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/sched/stats.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/stats.c
b/kernel/sched/stats.c
index e036eda1a9c9b422766447bf5006a70fde47155b..da98af347e8b6ed212e67086ae8576628c11d0dd 100644
(file)
--- 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 = s
chedstat
_release,
+ .release = s
eq
_release,
};
static int __init proc_schedstat_init(void)