diff options
author | Li Zefan <[email protected]> | 2009-06-15 10:56:42 +0800 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2009-06-15 11:37:12 -0400 |
commit | 215368e8e59023d6a0abdda896923018d74fdf7f (patch) | |
tree | 904bef6f1f3895843c5fbf288fd487713b78ed2c /net/lapb/lapb_timer.c | |
parent | 78be6914cb5c6d648617c51bb99bf81f28471d89 (diff) |
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 <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions