In osm_ucast_mgr, where osm_req_set is called for SwitchInfo,
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 13:52:13 +0000 (13:52 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 13:52:13 +0000 (13:52 +0000)
commit3650f191528a7bd3a7dda47272a00b69ea59800a
tree069b72925eacd8d2e0c5adf68af166bfd1c3a856
parentd5bb3d4b0ed76a086d36f8f1ca3b26a27c01f841
In osm_ucast_mgr, where osm_req_set is called for SwitchInfo,
fix bug where it copies more memory than it should into the SMP.

While running opensm with valgrind, it was found out that there is a
problemĀ  with osm_req_set function. It clears the madw.data by size of
IB_SMP_DATA_SIZE, but the function doesn't require a payload of this
size. In osm_ucast_mgr there was a call to the function with a payload
of smaller size (for SwitchInfo).

To fix it, payload_size to the osm_req_set was added.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@144 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/opensm/user/include/opensm/osm_req.h
ulp/opensm/user/opensm/osm_lid_mgr.c
ulp/opensm/user/opensm/osm_link_mgr.c
ulp/opensm/user/opensm/osm_mcast_mgr.c
ulp/opensm/user/opensm/osm_req.c
ulp/opensm/user/opensm/osm_state_mgr.c
ulp/opensm/user/opensm/osm_sw_info_rcv.c
ulp/opensm/user/opensm/osm_ucast_mgr.c