From: Bryan O'Sullivan Date: Sat, 1 Jul 2006 11:35:56 +0000 (-0700) Subject: [PATCH] IB/ipath: return an error for unknown multicast GID X-Git-Tag: v2.6.18-rc1~234 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9edbd990bb60dd7678f7f4f8ca3d92e03a1f0e67;p=linux-2.6 [PATCH] IB/ipath: return an error for unknown multicast GID Signed-off-by: Robert Walsh Signed-off-by: Bryan O'Sullivan Cc: "Michael S. Tsirkin" Cc: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c index a97548ee6a..996bbb05c3 100644 --- a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c +++ b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c @@ -273,7 +273,7 @@ int ipath_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) while (1) { if (n == NULL) { spin_unlock_irqrestore(&mcast_lock, flags); - ret = 0; + ret = -EINVAL; goto bail; }