From patchwork Tue Dec 8 15:14:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 65702 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB8FCtrD020171 for ; Tue, 8 Dec 2009 15:12:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbZLHPMr (ORCPT ); Tue, 8 Dec 2009 10:12:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754148AbZLHPMr (ORCPT ); Tue, 8 Dec 2009 10:12:47 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:41419 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752562AbZLHPMr (ORCPT ); Tue, 8 Dec 2009 10:12:47 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from eli@mellanox.co.il) with SMTP; 8 Dec 2009 17:21:44 +0200 Received: from localhost ([10.4.1.30]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 8 Dec 2009 17:12:38 +0200 Date: Tue, 8 Dec 2009 17:14:05 +0200 From: Eli Cohen To: Roland Dreier Cc: Linux RDMA list , ewg Subject: [PATCH] mlx4: Fix bug in mlx4_ib_mcg_attach Message-ID: <20091208151405.GA30005@mtls03> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 08 Dec 2009 15:12:38.0919 (UTC) FILETIME=[E15FF170:01CA7818] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17056.007 X-TM-AS-Result: No--1.564800-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 diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 0f6ef38..736eea0 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -586,8 +586,8 @@ static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); struct mlx4_ib_qp *mqp = to_mqp(ibqp); - err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, !!mqp->flags & - MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK); + err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, !!(mqp->flags & + MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK)); if (err) return err;