]> 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>
Wed, 20 Feb 2013 02:13:49 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:14 +0000 (16:52 +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;
 }