]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sched-proc-sched_stat-fails-on-very-very-large-machines-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:01 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:10 +0000 (16:46 +1100)
fix memleak

Cc: Dave Jones <davej@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Nathan Zimmer <nzimmer@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sched/stats.c

index 33a85c90045e9952b4ebb2dff04194db8cd08e1e..7eecdc7bb7754959ac91b7855b466eef90231762 100644 (file)
@@ -76,8 +76,8 @@ static int show_schedstat(struct seq_file *seq, void *v)
                }
                rcu_read_unlock();
 #endif
-               kfree(mask_str);
        }
+       kfree(mask_str);
        return 0;
 }