From: "Christophe Jaillet" <christophe.jaillet@wanadoo.fr>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] use kzalloc instead of kcalloc(1,
Date: Mon, 28 Nov 2005 21:40:13 +0000 [thread overview]
Message-ID: <007101c5f464$51029d80$ca48c356@bureau> (raw)
In-Reply-To: <007001c5f392$4c61cda0$3ec0c756@bureau>
[-- Attachment #1.1: Type: text/plain, Size: 1265 bytes --]
from: Christophe Jaillet christophe.jaillet@wanadoo.fr
use kzalloc instead of kcalloc(1,...) in /kernel/kprobes.c and /include/linux/gameport.h
Signed-off-by : Christophe Jaillet christophe.jaillet@wanadoo.fr
---
Patch applicable to linux-2.6.15-rc2
I hope that for this third try :
the form is OK
the patch is usefull
CJ
--- linux-2.6.14.2/kernel/kprobes.c.old 2005-11-11 06:33:12.000000000 +0100
+++ linux-2.6.14.2/kernel/kprobes.c 2005-11-28 22:20:58.000000000 +0100
@@ -420,3 +420,3 @@ static inline void add_aggr_kprobe(struc
* the intricacies
- * TODO: Move kcalloc outside the spinlock
+ * TODO: Move kzalloc outside the spinlock
*/
@@ -432,3 +432,3 @@ static int __kprobes register_aggr_kprob
} else {
- ap = kcalloc(1, sizeof(struct kprobe), GFP_ATOMIC);
+ ap = kzalloc(sizeof(struct kprobe), GFP_ATOMIC);
if (!ap)
--- linux-2.6.14.2/include/linux/gameport.h.old 2005-11-11 06:33:12.000000000 +0100
+++ linux-2.6.14.2/include/linux/gameport.h 2005-11-28 22:19:48.000000000 +0100
@@ -104,3 +104,3 @@ static inline struct gameport *gameport_
{
- struct gameport *gameport = kcalloc(1, sizeof(struct gameport), GFP_KERNEL);
+ struct gameport *gameport = kzalloc(sizeof(struct gameport), GFP_KERNEL);
[-- Attachment #1.2: Type: text/html, Size: 2046 bytes --]
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-11-28 21:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-27 20:36 [KJ] use kzalloc instead of kcalloc(1, Marion Jaillet
2005-11-27 21:23 ` Nishanth Aravamudan
2005-11-28 1:38 ` Nishanth Aravamudan
2005-11-28 1:41 ` Alexey Dobriyan
2005-11-28 21:40 ` Christophe Jaillet [this message]
2005-11-28 21:59 ` Nish Aravamudan
2005-11-28 22:12 ` Jesper Juhl
2005-11-29 21:42 ` Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='007101c5f464$51029d80$ca48c356@bureau' \
--to=christophe.jaillet@wanadoo.fr \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.