[PATCH] kernel/kprobes.c: use kzalloc Signed-off-by: Christophe Jaillet Signed-off-by: Alexey Dobriyan Index: linux-kj/kernel/kprobes.c =================================================================== --- linux-kj.orig/kernel/kprobes.c 2005-12-05 13:18:06.000000000 +0300 +++ linux-kj/kernel/kprobes.c 2005-12-05 13:19:30.000000000 +0300 @@ -408,7 +408,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 spin_lock + * TODO: Move kzalloc outside the spin_lock */ static int __kprobes register_aggr_kprobe(struct kprobe *old_p, struct kprobe *p) @@ -420,7 +420,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);