Re: [PATCH] Use directly kmalloc() and kfree() in init/initramfs.c

From: Jan Engelhardt
Date: Fri Feb 15 2008 - 09:46:58 EST



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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/