* [PATCH][git pull] tracing: replace kzalloc with kcalloc
@ 2009-02-28 7:35 Steven Rostedt
2009-02-28 8:03 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2009-02-28 7:35 UTC (permalink / raw)
To: LKML; +Cc: Ingo Molnar, Andrew Morton, Frédéric Weisbecker
Ingo,
Please pull the latest tip/tracing/ftrace tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/tracing/ftrace
Steven Rostedt (1):
tracing: replace kzalloc with kcalloc
----
kernel/trace/trace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---------------------------
commit 0cfe82451dfa3ebf4e69158f2eb450f2fbb6b715
Author: Steven Rostedt <srostedt@redhat.com>
Date: Fri Feb 27 10:51:10 2009 -0500
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>
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 5db7485..9c5987a 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3328,7 +3328,7 @@ create_trace_option_files(struct tracer *tracer)
for (cnt = 0; opts[cnt].name; cnt++)
;
- topts = kzalloc(sizeof(*topts) * (cnt + 1), GFP_KERNEL);
+ topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL);
if (!topts)
return NULL;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-28 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28 7:35 [PATCH][git pull] tracing: replace kzalloc with kcalloc Steven Rostedt
2009-02-28 8:03 ` Ingo Molnar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.