Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6155
b: refs/heads/master
c: d1887ec
h: refs/heads/master
i:
  6153: 24ada3f
  6151: 60583ca
v: v3
  • Loading branch information
Roland Dreier authored and Roland Dreier committed Aug 27, 2005
1 parent 358bcf3 commit 9090db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da6561c285a6e28a075b97fd5a1560a2b0ce843e
refs/heads/master: d1887ec2125988adccbd8bf0de638c41440bf80e
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ static int mthca_query_port(struct ib_device *ibdev,
if (!in_mad || !out_mad)
goto out;

memset(props, 0, sizeof *props);

memset(in_mad, 0, sizeof *in_mad);
in_mad->base_version = 1;
in_mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
Expand All @@ -146,6 +148,7 @@ static int mthca_query_port(struct ib_device *ibdev,
props->phys_state = out_mad->data[33] >> 4;
props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len;
props->max_msg_sz = 0x80000000;
props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len;
props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
props->active_width = out_mad->data[31] & 0xf;
Expand Down

0 comments on commit 9090db2

Please sign in to comment.