Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235134
b: refs/heads/master
c: 36b87b4
h: refs/heads/master
v: v3
  • Loading branch information
Mitko Haralanov authored and Roland Dreier committed Mar 14, 2011
1 parent 011c4ac commit b5dca57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4634b7945cf0d6a66036ad10c3d658ae4eb39fa0
refs/heads/master: 36b87b419c7616a8aaa9889566d9a9b50689dee1
5 changes: 3 additions & 2 deletions trunk/drivers/infiniband/hw/qib/qib_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,9 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
memset(smp->data, 0, sizeof(smp->data));

/* Only return the mkey if the protection field allows it. */
if (smp->method == IB_MGMT_METHOD_SET || ibp->mkey == smp->mkey ||
ibp->mkeyprot == 0)
if (!(smp->method == IB_MGMT_METHOD_GET &&
ibp->mkey != smp->mkey &&
ibp->mkeyprot == 1))
pip->mkey = ibp->mkey;
pip->gid_prefix = ibp->gid_prefix;
lid = ppd->lid;
Expand Down

0 comments on commit b5dca57

Please sign in to comment.