* [PATCH][TRIVIAL] Use kzalloc instead of kcalloc in kernel/kprobes.c
@ 2005-10-20 21:53 Luca Falavigna
0 siblings, 0 replies; only message in thread
From: Luca Falavigna @ 2005-10-20 21:53 UTC (permalink / raw)
To: Linux Kernel Mailing List
This trivial patch, compiled against kernel version 2.6.14-rc5,
substitutes kcalloc with kzalloc in kernel/kprobes.c
Signed-off-by: Luca Falavigna <dktrkranz@gmail.com>
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -418,7 +418,7 @@ static inline void add_aggr_kprobe(struc
/*
* This is the second or subsequent kprobe at the address - handle
* the intricacies
- * TODO: Move kcalloc outside the spinlock
+ * TODO: Move kzalloc outside the spinlock
*/
static int __kprobes register_aggr_kprobe(struct kprobe *old_p,
struct kprobe *p)
@@ -430,7 +430,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_ATOMIC);
+ ap = kzalloc(sizeof(struct kprobe), GFP_ATOMIC);
if (!ap)
return -ENOMEM;
add_aggr_kprobe(ap, old_p);
Regards,
--
Luca
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-20 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-20 21:53 [PATCH][TRIVIAL] Use kzalloc instead of kcalloc in kernel/kprobes.c Luca Falavigna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®