Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752443AbaAMTRx (ORCPT ); Mon, 13 Jan 2014 14:17:53 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:37988 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbaAMTRv (ORCPT ); Mon, 13 Jan 2014 14:17:51 -0500 Date: Mon, 13 Jan 2014 11:17:50 -0800 (PST) Message-Id: <20140113.111750.1356628971361206390.davem@davemloft.net> To: joe@perches.com Cc: jitendra.kalsaria@qlogic.com, linux-driver@qlogic.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] qlcnic: Convert vmalloc/memset to kcalloc From: David Miller In-Reply-To: <1389249745.24222.20.camel@joe-AO722> References: <1389249745.24222.20.camel@joe-AO722> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Perches Date: Wed, 08 Jan 2014 22:42:25 -0800 > vmalloc is a limited resource. Don't use it unnecessarily. > > It seems this allocation should work with kcalloc. > > Remove unnecessary memset(,0,) of buf as it's completely > overwritten as the previously only unset field in > struct qlcnic_pci_func_cfg is now set to 0. > > Use kfree instead of vfree. > Use ETH_ALEN instead of 6. > > Signed-off-by: Joe Perches Applied, thanks Joe. -- 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/