mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel: Replace kcalloc(1, with kzalloc.
@ 2005-11-09  0:54 Panagiotis Issaris
  0 siblings, 0 replies; only message in thread
From: Panagiotis Issaris @ 2005-11-09  0:54 UTC (permalink / raw)
  To: linux-kernel


Replace kcalloc(1, ... by kzalloc.

Signed-off-by: Panagiotis Issaris <takis@issaris.org>

---

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

applies-to: 9ca77cd1b92bf258e069b0d08b61a7812ac0c7d8
3cac421d544b4cf6381e1ebe41fcb6d995e4f150
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 5beda37..3ae9842 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-09  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09  0:54 [PATCH] kernel: Replace kcalloc(1, with kzalloc Panagiotis Issaris

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®