From: Li Zefan Date: Mon, 15 Jun 2009 02:56:42 +0000 (+0800) Subject: tracing: fix a typo in tracing_cpumask_write() X-Git-Tag: v2.6.31-rc1~95^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215368e8e59023d6a0abdda896923018d74fdf7f;p=pandora-kernel.git tracing: fix a typo in tracing_cpumask_write() It's tracing_cpumask_new that should be kfree()ed. This causes tracing_cpumask to be freed due to the typo: # echo z > tracing_cpumask bash: echo: write error: Invalid argument And subsequent reads/writes to tracing_cpuamsk will access this already-freed tracing_cpumask, thus may lead to crash. [ Impact: fix leak and crash when writing invalid val to tracing_cpumask ] Acked-by: Frederic Weisbecker Signed-off-by: Li Zefan LKML-Reference: <4A35B86A.7070608@cn.fujitsu.com> Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed