From patchwork Wed Apr 14 14:20:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Sokolovsky X-Patchwork-Id: 92412 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3EELtPv022225 for ; Wed, 14 Apr 2010 14:21:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755714Ab0DNOVz (ORCPT ); Wed, 14 Apr 2010 10:21:55 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:48793 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755388Ab0DNOVy (ORCPT ); Wed, 14 Apr 2010 10:21:54 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vlad@mellanox.co.il) with SMTP; 14 Apr 2010 17:21:49 +0300 Received: from localhost ([10.4.1.80]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 14 Apr 2010 17:21:48 +0300 Date: Wed, 14 Apr 2010 17:20:15 +0300 From: Vladimir Sokolovsky To: rdreier@cisco.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] amso1100: Add missing memset Message-ID: <20100414142015.GA16260@vlad-laptop> Reply-To: vlad@dev.mellanox.co.il MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-OriginalArrivalTime: 14 Apr 2010 14:21:48.0479 (UTC) FILETIME=[D1A1FCF0:01CADBDD] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17318.007 X-TM-AS-Result: No--2.218700-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Apr 2010 14:21:55 +0000 (UTC) diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c b/drivers/infiniband/hw/amso1100/c2_rnic.c index dd05c48..bac9856 100644 --- a/drivers/infiniband/hw/amso1100/c2_rnic.c +++ b/drivers/infiniband/hw/amso1100/c2_rnic.c @@ -155,6 +155,8 @@ static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props) if (err) goto bail2; + memset(props, 0, sizeof *props); + props->fw_ver = ((u64)be32_to_cpu(reply->fw_ver_major) << 32) | ((be32_to_cpu(reply->fw_ver_minor) & 0xFFFF) << 16) |