aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-07-01 07:35:56 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-01 12:55:59 -0400
commit9edbd990bb60dd7678f7f4f8ca3d92e03a1f0e67 (patch)
tree2afeef84ec90d166506b3470dca2e8a527236ece /drivers
parent60460dfd425e3d301831d8dd6398620d67bbda2b (diff)
[PATCH] IB/ipath: return an error for unknown multicast GID
Signed-off-by: Robert Walsh <robert.walsh@qlogic.com> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Cc: "Michael S. Tsirkin" <mst@mellanox.co.il> Cc: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_verbs_mcast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c
index a97548ee6a97..996bbb05c396 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)
273 while (1) { 273 while (1) {
274 if (n == NULL) { 274 if (n == NULL) {
275 spin_unlock_irqrestore(&mcast_lock, flags); 275 spin_unlock_irqrestore(&mcast_lock, flags);
276 ret = 0; 276 ret = -EINVAL;
277 goto bail; 277 goto bail;
278 } 278 }
279 279