Skip to content

Commit 62a4240

Browse files
authored
Merge pull request #6039 from hppritcha/topic/swat_issue5810_v3.0.x
btl/openib: fix a problem with ib query
2 parents d19d675 + c388378 commit 62a4240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,7 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
16641664
goto error;
16651665
}
16661666
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
1667+
memset(&device->ib_exp_dev_attr, 0, sizeof(device->ib_exp_dev_attr));
16671668
device->ib_exp_dev_attr.comp_mask = IBV_EXP_DEVICE_ATTR_RESERVED - 1;
16681669
if(ibv_exp_query_device(device->ib_dev_context, &device->ib_exp_dev_attr)){
16691670
BTL_ERROR(("error obtaining device attributes for %s errno says %s",

0 commit comments

Comments
 (0)