aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-27 10:51:10 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-27 10:51:10 -0500
commit0cfe82451dfa3ebf4e69158f2eb450f2fbb6b715 (patch)
treefc2db4892024f1d896f8ea0de3c4903a1c6543da
parent5c6a3ae1b4beebb56e2916b84f1208d96a9e32ff (diff)
tracing: replace kzalloc with kcalloc
Impact: clean up kcalloc is a better approach to allocate a NULL array. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 5db7485158df..9c5987aca74b 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3328,7 +3328,7 @@ create_trace_option_files(struct tracer *tracer)
3328 for (cnt = 0; opts[cnt].name; cnt++) 3328 for (cnt = 0; opts[cnt].name; cnt++)
3329 ; 3329 ;
3330 3330
3331 topts = kzalloc(sizeof(*topts) * (cnt + 1), GFP_KERNEL); 3331 topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL);
3332 if (!topts) 3332 if (!topts)
3333 return NULL; 3333 return NULL;
3334 3334