Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932196AbWELXpM (ORCPT ); Fri, 12 May 2006 19:45:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932195AbWELXoo (ORCPT ); Fri, 12 May 2006 19:44:44 -0400 Received: from mx.pathscale.com ([64.160.42.68]:55721 "EHLO mx.pathscale.com") by vger.kernel.org with ESMTP id S932208AbWELXod (ORCPT ); Fri, 12 May 2006 19:44:33 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 17 of 53] ipath - fail properly if GID missing X-Mercurial-Node: c5f3731224bb1211ab13cbdff6f656e745cc71cc Message-Id: In-Reply-To: Date: Fri, 12 May 2006 16:43:02 -0700 From: "Bryan O'Sullivan" To: rdreier@cisco.com Cc: openib-general@openib.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 21 Return -EINVAL if we can't find a multicast GID. Signed-off-by: Bryan O'Sullivan diff -r 176d1f0c26a3 -r c5f3731224bb drivers/infiniband/hw/ipath/ipath_verbs_mcast.c --- a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c Fri May 12 15:55:28 2006 -0700 +++ b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c Fri May 12 15:55:28 2006 -0700 @@ -272,7 +272,7 @@ int ipath_multicast_detach(struct ib_qp while (1) { if (n == NULL) { spin_unlock_irqrestore(&mcast_lock, flags); - ret = 0; + ret = -EINVAL; goto bail; } - 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/