[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0802151546230.30301@fbirervta.pbzchgretzou.qr>
Date: Fri, 15 Feb 2008 15:46:47 +0100 (CET)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>, mpm@...enic.com
Subject: Re: [PATCH] Use directly kmalloc() and kfree() in init/initramfs.c
On Feb 15 2008 12:13, Thomas Petazzoni wrote:
>+++ linux/init/initramfs.c
>@@ -57,7 +57,7 @@
> continue;
> return (*p)->name;
> }
>- q = (struct hash *)malloc(sizeof(struct hash));
>+ q = (struct hash *)kmalloc(sizeof(struct hash), GFP_KERNEL);
Remove the cast while you are at it, thanks :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists