Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754081Ab0KEDNT (ORCPT ); Thu, 4 Nov 2010 23:13:19 -0400 Received: from mail.perches.com ([173.55.12.10]:4140 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753816Ab0KEDI5 (ORCPT ); Thu, 4 Nov 2010 23:08:57 -0400 From: Joe Perches To: Jiri Kosina Cc: Solarflare linux maintainers , Steve Hodgson , Ben Hutchings , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 30/49] drivers/net/sfc: Use vzalloc Date: Thu, 4 Nov 2010 20:07:54 -0700 Message-Id: <70ba2984e2d82d5f7dd6733f8466e3b2a8774747.1288925425.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.1.g432b3.dirty In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 29 Signed-off-by: Joe Perches --- drivers/net/sfc/filter.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/sfc/filter.c b/drivers/net/sfc/filter.c index 52cb608..44500b5 100644 --- a/drivers/net/sfc/filter.c +++ b/drivers/net/sfc/filter.c @@ -428,10 +428,9 @@ int efx_probe_filters(struct efx_nic *efx) GFP_KERNEL); if (!table->used_bitmap) goto fail; - table->spec = vmalloc(table->size * sizeof(*table->spec)); + table->spec = vzalloc(table->size * sizeof(*table->spec)); if (!table->spec) goto fail; - memset(table->spec, 0, table->size * sizeof(*table->spec)); } return 0; -- 1.7.3.1.g432b3.dirty -- 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/