This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH]Kprobes: conversion from kcalloc to kzalloc
- From: Keshavamurthy Anil S <anil dot s dot keshavamurthy at intel dot com>
- To: akpm at osdl dot org, Linux Kernel <linux-kernel at vger dot kernel dot org>
- Cc: anil dot s dot keshavamurthy at intel dot com, Systemtap <systemtap at sources dot redhat dot com>
- Date: Fri, 6 Jan 2006 12:34:35 -0800
- Subject: [PATCH]Kprobes: conversion from kcalloc to kzalloc
- Reply-to: Keshavamurthy Anil S <anil dot s dot keshavamurthy at intel dot com>
[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);