lkml.org 
[lkml]   [2005]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] kernel: Replace kcalloc(1, with kzalloc.
Date
From

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-11-09 01:57    [W:0.030 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site