kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sesterhenn <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [Patch] kzalloc() conversion in arch/alpha
Date: Tue, 07 Mar 2006 12:12:48 +0000	[thread overview]
Message-ID: <1141733568.8665.4.camel@alice> (raw)
In-Reply-To: <1141499387.30193.18.camel@alice>

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

hi, 

this patch converts arch/ppc to kzalloc usage.
Crosscompile tested with allyesconfig.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.16-rc5-mm1/arch/alpha/kernel/module.c.orig	2006-03-07 12:29:21.000000000 +0100
+++ linux-2.6.16-rc5-mm1/arch/alpha/kernel/module.c	2006-03-07 12:29:45.000000000 +0100
@@ -119,8 +119,7 @@ module_frob_arch_sections(Elf64_Ehdr *hd
 	}
 
 	nsyms = symtab->sh_size / sizeof(Elf64_Sym);
-	chains = kmalloc(nsyms * sizeof(struct got_entry), GFP_KERNEL);
-	memset(chains, 0, nsyms * sizeof(struct got_entry));
+	chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL);
 
 	got->sh_size = 0;
 	got->sh_addralign = 8;



[-- 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

  parent reply	other threads:[~2006-03-07 12:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-04 19:09 [KJ] [Patch] kzalloc() conversion in arch/ia64 Eric Sesterhenn
2006-03-04 19:09 ` [KJ] [Patch] kzalloc() conversion in arch/i386 Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/sparc Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/sparc64 Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/ppc Eric Sesterhenn
2006-03-07  8:53 ` [KJ] [Patch] kzalloc() conversion in arch/powerpc Eric Sesterhenn
2006-03-07  8:53 ` [KJ] [Patch] kzalloc() conversion in arch/s390 Eric Sesterhenn
2006-03-07 12:12 ` Eric Sesterhenn [this message]
2006-03-07 12:12 ` [KJ] [Patch] kzalloc() conversion in arch/arm26 Eric Sesterhenn
2006-03-07 12:12 ` [KJ] [Patch] kzalloc() conversion in arch/m68k Eric Sesterhenn
2006-03-07 20:36 ` [KJ] [Patch] kzalloc() conversion in arch/x86_64 Eric Sesterhenn

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=1141733568.8665.4.camel@alice \
    --to=snakebyte@gmx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).