[openib-general] [PATCH 17 of 53] ipath - fail properly if GID missing
Bryan O'Sullivan
bos at pathscale.com
Fri May 12 16:43:02 PDT 2006
Return -EINVAL if we can't find a multicast GID.
Signed-off-by: Bryan O'Sullivan <bos at pathscale.com>
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;
}
More information about the general
mailing list