Commit a0d50069 authored by Keshavamurthy Anil S's avatar Keshavamurthy Anil S Committed by Linus Torvalds

[PATCH] Kprobes: conversion from kcalloc to kzalloc

Signed-of-by: default avatarAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0498b635
...@@ -431,7 +431,7 @@ static int __kprobes register_aggr_kprobe(struct kprobe *old_p, ...@@ -431,7 +431,7 @@ static int __kprobes register_aggr_kprobe(struct kprobe *old_p,
copy_kprobe(old_p, p); copy_kprobe(old_p, p);
ret = add_new_kprobe(old_p, p); ret = add_new_kprobe(old_p, p);
} else { } else {
ap = kcalloc(1, sizeof(struct kprobe), GFP_KERNEL); ap = kzalloc(sizeof(struct kprobe), GFP_KERNEL);
if (!ap) if (!ap)
return -ENOMEM; return -ENOMEM;
add_aggr_kprobe(ap, old_p); add_aggr_kprobe(ap, old_p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment