Skip to contentSkip to conversation

IB/qib: fix compliance test failure C14-024#06_LocalPortNum

PATCH New Mike Marciniszyn 1 participant 1 message Sep 12, 2012 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/qib: fix compliance test failure C14-024#06_LocalPortNum

Commit 3236b2d4 ("IB/qib: MADs with misset M_Keys should return failure") introduced a return code assignment that unfortunately introduced an unconditional exit for the routine due to the lack of braces.

This patch adds the braces to correct the original patch.

---
 drivers/infiniband/hw/qib/qib_mad.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/infiniband/hw/qib/qib_mad.c +2 -1
index 19f1e6c..ccb1191 100644
@@ -471,9 +471,10 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
 		if (port_num != port) {
 			ibp = to_iport(ibdev, port_num);
 			ret = check_mkey(ibp, smp, 0);
-			if (ret)
+			if (ret) {
 				ret = IB_MAD_RESULT_FAILURE;
 				goto bail;
+			}
 		}
 	}
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html