Skip to contentSkip to conversation

kernel: Replace kcalloc(1, with kzalloc.

PATCH New Panagiotis Issaris 1 participant 1 message Nov 9, 2005 kprobes

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: Replace kcalloc(1, with kzalloc.

Replace kcalloc(1, ... by kzalloc.

---

 kernel/kprobes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: 9ca77cd1b92bf258e069b0d08b61a7812ac0c7d8 3cac421d544b4cf6381e1ebe41fcb6d995e4f150

kernel/kprobes.c +1 -1
index 5beda37..3ae9842 100644
@@ -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);

---
0.99.9.GIT