Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932995AbYBOOq4 (ORCPT ); Fri, 15 Feb 2008 09:46:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755909AbYBOOqt (ORCPT ); Fri, 15 Feb 2008 09:46:49 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:57882 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755560AbYBOOqs (ORCPT ); Fri, 15 Feb 2008 09:46:48 -0500 Date: Fri, 15 Feb 2008 15:46:47 +0100 (CET) From: Jan Engelhardt To: Thomas Petazzoni cc: Linux Kernel Mailing List , Andrew Morton , mpm@selenic.com Subject: Re: [PATCH] Use directly kmalloc() and kfree() in init/initramfs.c In-Reply-To: <20080215121330.3f790783@crazy> Message-ID: References: <20080215121330.3f790783@crazy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 546 Lines: 17 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/