From patchwork Fri Mar 25 00:15:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Dreier X-Patchwork-Id: 660801 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2P0FoUU028906 for ; Fri, 25 Mar 2011 00:15:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754610Ab1CYAPt (ORCPT ); Thu, 24 Mar 2011 20:15:49 -0400 Received: from na3sys010aog112.obsmtp.com ([74.125.245.92]:50929 "HELO na3sys010aog112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752180Ab1CYAPt (ORCPT ); Thu, 24 Mar 2011 20:15:49 -0400 Received: from source ([74.125.82.170]) (using TLSv1) by na3sys010aob112.postini.com ([74.125.244.12]) with SMTP ID DSNKTYvesuSa4qlMdMSf2GOYEsT8wW7XU6sF@postini.com; Thu, 24 Mar 2011 17:15:48 PDT Received: by mail-wy0-f170.google.com with SMTP id 34so505205wyb.29 for ; Thu, 24 Mar 2011 17:15:46 -0700 (PDT) Received: by 10.227.202.73 with SMTP id fd9mr97600wbb.72.1301012146181; Thu, 24 Mar 2011 17:15:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.61.81 with HTTP; Thu, 24 Mar 2011 17:15:26 -0700 (PDT) In-Reply-To: <20110324170035.552ab769@nehalam> References: <20110324170035.552ab769@nehalam> From: Roland Dreier Date: Thu, 24 Mar 2011 17:15:26 -0700 Message-ID: Subject: Re: nes: uninitialized variable To: Stephen Hemminger Cc: Maciej Sosnowski , Roland Dreier , linux-rdma@vger.kernel.org, Jiri Pirko 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 25 Mar 2011 00:15:50 +0000 (UTC) diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index ef32915..cfa3a2b 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c @@ -1116,7 +1116,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi return rc; } - if (netif_is_bond_slave(netdev)) + if (netif_is_bond_slave(nesvnic->netdev)) netdev = nesvnic->netdev->master; else