From patchwork Wed Apr 7 09:39:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 90989 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 o379dYPv012070 for ; Wed, 7 Apr 2010 09:39:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932510Ab0DGJjM (ORCPT ); Wed, 7 Apr 2010 05:39:12 -0400 Received: from mail-fx0-f223.google.com ([209.85.220.223]:41662 "EHLO mail-fx0-f223.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932460Ab0DGJjI (ORCPT ); Wed, 7 Apr 2010 05:39:08 -0400 Received: by fxm23 with SMTP id 23so787277fxm.21 for ; Wed, 07 Apr 2010 02:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=JtEj69eKC2NmkByC9mZOpRzslW3OyhFlmyDmXMXzfUA=; b=lKmHnP7BJKKS/xFv0sVr2dqOvO19c+4FlXe1ij7cDP14vBlY5Z0LQl5H2GKgUhIDDw LdOeFfxg0tTOFQPHpkV6tJtLk8+CHaPBPNJgmhflvtJzZusA8TRjvTJM9S5oocsnBGIh XJBRTYWJtSjBI2M1rSaaEXozDe0/Fomfk7feE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Diqs66ZhIMWjtZD1DBZ+wh0ZjIwDjudgtuBMbw4s24ftcG4PdY/qS9rkARCDzXRNy8 vTeuhKtkP1L84jSSnKBW59rqJD8L2y60UHVRfZPvhJHmJxTYWy3My/yrk3Yjkq3Khcmn j9QSAvRH0WTHP4NEHQSjEDgLy5l4rN3eFHtIU= Received: by 10.103.69.2 with SMTP id w2mr4727068muk.18.1270633146949; Wed, 07 Apr 2010 02:39:06 -0700 (PDT) Received: from bicker ([196.43.68.50]) by mx.google.com with ESMTPS id 14sm5649328muo.2.2010.04.07.02.39.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Apr 2010 02:39:06 -0700 (PDT) Date: Wed, 7 Apr 2010 12:39:01 +0300 From: Dan Carpenter To: Roland Dreier Cc: Sean Hefty , Hal Rosenstock , Tejun Heo , Christoph Lameter , Jack Morgenstein , linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] infiniband: checking the wrong variable Message-ID: <20100407093901.GG5157@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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, 07 Apr 2010 09:39:35 +0000 (UTC) diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c index 56147b2..1d27b9a 100644 --- a/drivers/infiniband/hw/mlx4/mr.c +++ b/drivers/infiniband/hw/mlx4/mr.c @@ -240,7 +240,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev, size, &mfrpl->map, GFP_KERNEL); - if (!mfrpl->ibfrpl.page_list) + if (!mfrpl->mapped_page_list) goto err_free; WARN_ON(mfrpl->map & 0x3f);