diff mbox

IB/qib: Fix M_Key field in SubnGet and SubnGetResp MADs

Message ID 20110302230113.6050.82446.stgit@kop-dev-sles11-04.qlogic.org (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Mike Marciniszyn March 2, 2011, 11:01 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c
index 7c44726..5494082 100644
--- a/drivers/infiniband/hw/qib/qib_mad.c
+++ b/drivers/infiniband/hw/qib/qib_mad.c
@@ -465,7 +465,7 @@  static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
 
 	/* Only return the mkey if the protection field allows it. */
 	if (smp->method == IB_MGMT_METHOD_SET || ibp->mkey == smp->mkey ||
-	    ibp->mkeyprot == 0)
+	    ibp->mkeyprot != 0)
 		pip->mkey = ibp->mkey;
 	pip->gid_prefix = ibp->gid_prefix;
 	lid = ppd->lid;