* [PATCH]Kprobes: conversion from kcalloc to kzalloc
@ 2006-01-06 20:34 Keshavamurthy Anil S
0 siblings, 0 replies; only message in thread
From: Keshavamurthy Anil S @ 2006-01-06 20:34 UTC (permalink / raw)
To: akpm, Linux Kernel; +Cc: anil.s.keshavamurthy, Systemtap
[PATCH] kprobes: Conversion from kcalloc to kzalloc
Conversion from kcalloc(1, ..) to kzalloc()
Signed-of-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
---------------------------------------------------------
kernel/kprobes.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.15-mm1/kernel/kprobes.c
===================================================================
--- linux-2.6.15-mm1.orig/kernel/kprobes.c
+++ linux-2.6.15-mm1/kernel/kprobes.c
@@ -431,7 +431,7 @@ static int __kprobes register_aggr_kprob
copy_kprobe(old_p, p);
ret = add_new_kprobe(old_p, p);
} else {
- ap = kcalloc(1, sizeof(struct kprobe), GFP_KERNEL);
+ ap = kzalloc(sizeof(struct kprobe), GFP_KERNEL);
if (!ap)
return -ENOMEM;
add_aggr_kprobe(ap, old_p);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-06 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 20:34 [PATCH]Kprobes: conversion from kcalloc to kzalloc Keshavamurthy Anil S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).