Fix leaks on /proc/{*/sched,sched_debug,timer_list,timer_stats}
[linux-block.git] / fs / proc / base.c
index 3c77d5a64e7ce6512e896d768d8bb74501372a89..19489b0d5554860e28a1b7e6aeefc5d23fa0d992 100644 (file)
@@ -927,7 +927,7 @@ static const struct file_operations proc_pid_sched_operations = {
        .read           = seq_read,
        .write          = sched_write,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 #endif