Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754820Ab3D3GeS (ORCPT ); Tue, 30 Apr 2013 02:34:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58476 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965Ab3D3GeQ (ORCPT ); Tue, 30 Apr 2013 02:34:16 -0400 Date: Tue, 30 Apr 2013 08:34:01 +0200 From: Jens Axboe To: Philippe De Muyter Cc: linux-kernel@vger.kernel.org, Matt Domsch , Panagiotis Issaris , Andrew Morton Subject: Re: [PATCH] partitions/efi.c: replace useless kzalloc's by kmalloc's Message-ID: <20130430063401.GJ9563@kernel.dk> References: <1367269218-17056-1-git-send-email-phdm@macqel.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1367269218-17056-1-git-send-email-phdm@macqel.be> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 532 Lines: 15 On Mon, Apr 29 2013, Philippe De Muyter wrote: > In alloc_read_gpt_entries and alloc_read_gpt_header, the kzalloc'ated > zones are either totally overwritten by the following read_lba call, > or freed. As kmalloc is cheaper than kzalloc, use kmalloc. Applied, thanks. -- Jens Axboe -- 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/