[PATCH] Kprobes: conversion from kcalloc to kzalloc
authorKeshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
Tue, 10 Jan 2006 04:52:46 +0000 (20:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:41 +0000 (08:01 -0800)
Signed-of-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/kprobes.c

index f24cbab558f13e63d34ba6de7ba1bad728dbac50..34a885bb82e0d94a38a7ebec8e8014cf2dc197d1 100644 (file)
@@ -431,7 +431,7 @@ static int __kprobes register_aggr_kprobe(struct kprobe *old_p,
                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);